Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. HTTP
  3. Guides
  4. Cross-Origin Resource Sharing (CORS)
  5. CORS errors
  6. Reason: invalid token 'xyz' in CORS header 'Access-Control-Allow-Headers'

Reason: invalid token 'xyz' in CORS header 'Access-Control-Allow-Headers'

Reason

Reason: invalid token 'xyz' in CORS header 'Access-Control-Allow-Headers'

What went wrong?

The response to theCORS request that was sent by the server includesanAccess-Control-Allow-Headers header which includes at least oneinvalid header name.

TheAccess-Control-Allow-Headers header is sent by the server in responseto apreflight request; it lets the client know whichHTTP headers are permitted in CORS requests.If the clientuser agent finds among the comma-delineated valuesprovided by the header any header name it does not recognize, this error occurs.

This is a problem that most likely can only be fixed on the server side, by modifyingthe server's configuration to no longer send the invalid or unknown header name with theAccess-Control-Allow-Headers header. It may also be worth checking toensure that the user agent or HTTP library you're using on the client is up-to-date.

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp