-
Notifications
You must be signed in to change notification settings - Fork 345
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
Cors Origin * does not work #5585
Comments
Because * is not a valid value for that header. So it returns the domain you sent if "*" is set to make the preflight request passed. |
How can I allow all origins? @ardatan |
"*" already does that. If you send a request from a different origin, it will send that origin in the header. This is done for security purposes. |
With "*" I am getting Cors error, not sure what's going wrong. When I try to make request even from localhost, no allowed-origin header is present in response headers, @ardatan |
Issue workflow progress
Progress of the issue based on the
Contributor Workflow
Github,
Stackblitz
or
CodeSandbox
Describe the bug
While setting the cors origin to "*" it still return the allowed origin as the host domain.
To Reproduce Steps to reproduce the behavior:
Sandbox: Link
The text was updated successfully, but these errors were encountered: