This PR adds X-Requested-With header for the xhr request, which is sort of standard in many JS ajax libs world. Say you have a auth proxy in front of podinfo and session expires, would be nice to notify user to reload the page to re authenticate. I have added a button which pops up only if xhr status not 200, clicking that reloads the page.
This PR adds
X-Requested-With
header for thexhr
request, which is sort of standard in many JS ajax libs world. Say you have a auth proxy in front of podinfo and session expires, would be nice to notify user to reload the page to re authenticate. I have added a button which pops up only ifxhr
status not 200, clicking that reloads the page.More info about AJAX requests and how to detect them can be found here: https://cloud.google.com/iap/docs/sessions-howto#understanding_the_response