ajax 跨域获取 header 的问题
資深大佬 : sarices 53
已经设置好 access-control-allow-headers 也已经有响应响应字段,但是 axios 获取响应只有 content-type,有朋友试过吗?我想获取 authorization,更新本地 token
access-control-allow-credentials: true access-control-allow-headers: Authorization, Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since, X-Requested-With access-control-allow-methods: GET, POST, PATCH, PUT, DELETE access-control-allow-origin: * authorization: Bearer 1121 content-type: application/json; charset=utf-8 date: Fri, 03 Jan 2020 03:51:56 GMT server: nginx status: 200```
大佬有話說 (0)