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

Authorization header capitalization #206

Open
MichelJonkman opened this issue May 4, 2022 · 1 comment
Open

Authorization header capitalization #206

MichelJonkman opened this issue May 4, 2022 · 1 comment

Comments

@MichelJonkman
Copy link

MichelJonkman commented May 4, 2022

The setToken method sets the header as "Authorization" but if there is already an authorization header without capital A they can combined in the final request causing errors to occur. In my case this was the cause of Strapi /users/me giving an 401 response.

Nuxt version: 2.15.8
@nuxt/http version: 0.6.4

@MichelJonkman
Copy link
Author

The existing authorization header is the result of an nginx reverse proxy with HTTP basic authentication

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

No branches or pull requests

1 participant