Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix * behavior to be standard compliant.
When a user specifies *, then * should be returned by the server in the access-control-allow-origin header, not the origin header. All implementations of the CORS standard that reflect the origin header when * is specified are incorrect, because an Access-Control-Allow-Origin header of '*' has a different meaning than a reflected Origin header. Refer to Section 6.1 https://www.w3.org/TR/cors/. When * is set, Credentials are not allowed to be used in an authenticated request. **What's the big deal?** If you set Allow Credentials to True and Origins to * with this library then you have turned off SAMEORIGIN policy for your website, which is unexpected behavior and....really bad.
- Loading branch information