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

Response returned even if Origin not allowed #29

Closed
es-lab opened this issue Feb 4, 2017 · 1 comment
Closed

Response returned even if Origin not allowed #29

es-lab opened this issue Feb 4, 2017 · 1 comment

Comments

@es-lab
Copy link

es-lab commented Feb 4, 2017

I'm limiting my web service to only some origins. If I try to make a request from an origin not allowed I get the error Origin 'xxxx' is therefore not allowed access. in the console, but I still get the response, is this normal? How to block the access to the further resources.

@rs
Copy link
Owner

rs commented Feb 6, 2017

This is expected. CORS is not supposed to prevent the response from being returned.

@rs rs closed this as completed Feb 6, 2017
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