Spec-Zone.ru › HTTP

CORS: Errors.CORSNotSupportingCredentials

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?

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, ensure that the credentials flag's value is false when issuing your CORS request.

  • If using the Fetch API, make sure Request.credentials is "omit".
  • If the request is being issued using XMLHttpRequest, make sure you're not setting withCredentials to true.
  • If using Server-sent events, make sure EventSource.withCredentials is false (it's the default value).

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

  • CORS errors
  • Glossary: CORS
  • CORS introduction

© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS/Errors/CORSNotSupportingCredentials

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API