We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Since Axios 0.23 and the inclusion of axios/axios#4140 types have changed for global headers.
It is now forbidden to set axios.defaults.headers.Authorization = 'Bearer {auth_token}' and it must be set in axios.defaults.headers.common instead.
axios.defaults.headers.Authorization = 'Bearer {auth_token}'
axios.defaults.headers.common
However vue-auth-plugin skip non-strings value in
vue-auth-plugin/src/lib/auth-vue-http.ts
Line 173 in fda160e
Header is not replaced, and authenticated requests failed.
Expected behavior Header should be replaced.
Additional context Maybe the test should go deeper to handle common, get, post, etc, headers.
common
get
post
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Since Axios 0.23 and the inclusion of axios/axios#4140 types have changed for global headers.
It is now forbidden to set
axios.defaults.headers.Authorization = 'Bearer {auth_token}'
and it must be set inaxios.defaults.headers.common
instead.However vue-auth-plugin skip non-strings value in
vue-auth-plugin/src/lib/auth-vue-http.ts
Line 173 in fda160e
Header is not replaced, and authenticated requests failed.
Expected behavior
Header should be replaced.
Additional context
Maybe the test should go deeper to handle
common
,get
,post
, etc, headers.The text was updated successfully, but these errors were encountered: