Only a certain list of "safe" headers are exposed by default (to Javascript). This is for security reasons. This list is as follows
In order to expose other headers, the server should send the access control header Access-Control-Expose-Headers
, listing all the headers it wants to expose.
Access-Control-Expose-Headers: Content-Length, X-CSRF-Token
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.