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
预期:接口会在response header中返回一些信息,比如token。我在响应拦截器中读取header 问题:拦截器的header内容只返回了content-length和content-type,与浏览器看看到的header不一致,导致我取不到token
responseInterceptors: [ (response: AxiosResponse) => { console.log('response headers:', response.headers); // 打印只有得到content-length和content-type const { data, config } = response if (!data?.success) { message.error('请求失败!'); } return data; }, ],
token没有读取不到
浏览器 | browser:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
🧐 问题描述 | Problem description
预期:接口会在response header中返回一些信息,比如token。我在响应拦截器中读取header
问题:拦截器的header内容只返回了content-length和content-type,与浏览器看看到的header不一致,导致我取不到token
💻 示例代码 | Sample code
token没有读取不到
🚑 其他信息 | Other information
浏览器 | browser:
The text was updated successfully, but these errors were encountered: