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

انتقل إلى:

Our volunteers haven't translated this article into عربي yet. Join us and help get the job done!
You can also read the article in English (US).

Reason

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

What went wrong?

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

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

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

See also

Document Tags and Contributors

المساهمون في هذه الصفحة: mdnwebdocs-bot, Sheppy
آخر مَن حدّثها: mdnwebdocs-bot,