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
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加