-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[bug] Headers are not accessible in Middleware when Request sent from Browser #703
Comments
Hey @akki4vedi, I went through the given code. I found an issue in the current implementation that (though it is the correct intended behaviour) Technically speaking, when you're making a request to any route containing the I'm guessing this is not what you want. Just to be clear If I'm not wrong you want static routes to be served without authentication. I would highly recommend you to go through the issue #360 I tried the same and it is working fine. Attaching a screenshot for reference. I hope this helps and solves your problem. If yes, please close this issue else I would be happy to answer your doubts/queries. Thank you 🙌🏻 |
Thanks for the reply. Actually, I don't want to deactivate API for any route, there is only one route in my project to test |
What I have shown in the screenshot is from the browser only using the |
Hi @akki4vedi |
Hey @soundkitchen, I don't think it will work. I tried it and didn't get the expected output. I'm sharing my screenshot for reference. We need to send the In chrome browser Chrome dev tools console shows what I'm trying to say(on how we should send requests) if we don't want to exclude It doesn't matter if we're using |
@akki4vedi The first screenshot you pasted doesn't seem to have a Referrer, under what circumstances was this requested? |
I am simply calling the fetch API on load of javascript on the HTML page, the code is written in the issue as Front End. @soundkitchen & @amustaque97 Can I have code of API call in your app and the main method of the server for reference? |
@akki4vedi |
Describe the bug
Versions
…
Steps to Reproduce
…
Expected behavior
Code Snippets
Front End :-
…
The text was updated successfully, but these errors were encountered: