Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. HTTP
  3. Guides
  4. Cross-Origin Resource Sharing (CORS)
  5. CORS errors
  6. Reason: Credential is not supported if the CORS header 'Access-Control-Allow-Origin' is '*'

Reason: Credential is not supported if the CORS header 'Access-Control-Allow-Origin' is '*'

Reason

Reason: Credential is not supported if the CORS header 'Access-Control-Allow-Origin' is '*'

What went wrong?

TheCORS request was attempted with the credentials flag set, but the server is configured using the wildcard ("*") as the value ofAccess-Control-Allow-Origin, which doesn't allow the use of credentials.

To correct this problem on the client side, ensure that the credentials flag's value isfalse when issuing your CORS request.

If, instead, you need to adjust the server's behavior, you'll need to change the value ofAccess-Control-Allow-Origin to grant access to the origin from which the client is loaded.

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp