Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ui): add xhr request header and a xhr status button #360

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lsjostro
Copy link

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.

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

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant