Reason: expected 'true' in CORS header 'Access-Control-Allow-Credentials'
Reason
Reason: expected 'true' in CORS header 'Access-Control-Allow-Credentials'
In this article
What went wrong?
TheCORS request requires that the server permit the use ofcredentials, but the server'sAccess-Control-Allow-Credentialsheader's value isn't set totrue to enable their use.
To fix this problem on the client side, revise the code to not request the use ofcredentials.
- If using theFetch API, make sure
Request.credentialsis"omit". - If the request is being issued using
XMLHttpRequest, make sure you'renot settingwithCredentialstotrue. - If usingServer-sent events,make sure
EventSource.withCredentialsisfalse(it's thedefault value).
To eliminate this error by changing the server's configuration, adjust the server'sconfiguration to set theAccess-Control-Allow-Credentials header's value totrue.
See also
- CORS errors
- Glossary:CORS
- CORS introduction