-
Notifications
You must be signed in to change notification settings - Fork 145
Wildcard origin sent despite supports_credentials=True #202
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
Comments
@gsakkis, |
@ganeshparsads what do you mean there is no way? I just gave an example that demonstrates the issue (actually bug) along with a fix. |
I think you are both right. It is currently possible for Flask-CORS to return these headers in the situation, as @gsakkis has shown. @ganeshparsads you are correct in that it is not valid for browsers to receive these headers. I will create an update per @gsakkis's diff to fix this issue. |
This should be fixed. @gsakkis thank you very much for the bug report (and fix :D) |
CORS(app, supports_credentials=True)
causes the server to returnAccess-Control-Allow-Credentials: true
andAccess-Control-Allow-Origin: *
, which afaict is invalid. The cause is thealways_send=True
default option; making itFalse
doesn't trigger the bug.Probable fix:
The text was updated successfully, but these errors were encountered: