Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access-Control-Allow-Credentials: True causing proxied requests to fail #330

Closed
msa0311 opened this issue Mar 4, 2021 · 1 comment
Closed

Comments

@msa0311
Copy link

msa0311 commented Mar 4, 2021

cors-anywhere does not work if credentials are passed in the requested:
If "Access-Control-Allow-Credentials" is "true" --> "Access-Control-Allow-Origin" cannot be "*"

Access to XMLHttpRequest at 'http://localhost:8080/http://xyz' from origin 'http://localhost:12345' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.

msa0311 added a commit to msa0311/cors-anywhere that referenced this issue Mar 4, 2021
…in case the "Access-Control-Allow-Credentials" is true
@Rob--W
Copy link
Owner

Rob--W commented Mar 4, 2021

Duplicate of #36 among many others.

In short, credentials are not supported for security reasons. See also https://github.com/Rob--W/cors-anywhere/pull/148#issuecomment-452465262

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants