-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Passing autherization header for page-data/app-data requests #23518
Comments
Thank you for opening this! Have you already read our guide on this? https://www.gatsbyjs.org/docs/building-a-site-with-authentication/ We're marking this issue as answered and closing it for now but please feel free to comment here if you would like to continue this discussion. We also recommend heading over to our communities if you have questions that are not bug reports or feature requests. We hope we managed to help and thank you for using Gatsby! |
Yes. I did try it. But the issue with that was, the content is still exposed in one of the page js file. I want to avoid that, as one can still access this file without authentication |
I have the exact same question, with the exact same issue. And I think most people I would think it's possible that the Gatsby SPA could pass an
But if the Gatsby SPA programmatically added an Authorization header after a |
@arunrajnayak did you find a solution? |
Ah this is where the meat of the discussion is: #1100 |
Is there a way we can pass authorization headers to all requests for page-data/app-data, for handling authentication?
The text was updated successfully, but these errors were encountered: