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
目前的请求拦截器 requestInterceptors 中 getToken 取得的 token ,设置为 Authorization header 时前面没有加上认证方案类型。 Authorization: <type> <credentials>
Authorization: <type> <credentials>
对于 JWT,类型应该是 Bearer,参考 MDN Authorization: Bearer <token>
Authorization: Bearer <token>
建议在 projectSettings.ts 里加一个 authScheme: 'Bearer' 的配置,可以根据后台需要修改。
使用正确解析 Authorization 的接口测试,mock 接口当前没做验证。
The text was updated successfully, but these errors were encountered:
b6d5b07
新增了选项,可以自行配置
Sorry, something went wrong.
feat(axios): added authenticationScheme configuration,fix vbenjs#774
554557f
No branches or pull requests
Describe the bug
目前的请求拦截器 requestInterceptors 中 getToken 取得的 token ,设置为 Authorization header 时前面没有加上认证方案类型。
Authorization: <type> <credentials>
对于 JWT,类型应该是 Bearer,参考 MDN
Authorization: Bearer <token>
建议在 projectSettings.ts 里加一个 authScheme: 'Bearer' 的配置,可以根据后台需要修改。
Reproduction
使用正确解析 Authorization 的接口测试,mock 接口当前没做验证。
The text was updated successfully, but these errors were encountered: