You’re reading the English version of this content since no translation exists yet for this locale. Help us translate this article!
Reason: expected ‘true’ in CORS header ‘Access-Control-Allow-Credentials’
What went wrong?
To fix this problem on the client side, revise the code to not request the use of credentials.
- If the request is being issued using
XMLHttpRequest, make sure you're not setting
- If using Server-sent events, make sure
false(it's the default value).
- If using the Fetch API, make sure
To eliminate this error by changing the server's configuration, adjust the server's configuration to set the
Access-Control-Allow-Credentials header's value to