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

CORS headers not sent on OPTIONS request #81

Closed
manutenfruits opened this issue May 23, 2013 · 2 comments
Closed

CORS headers not sent on OPTIONS request #81

manutenfruits opened this issue May 23, 2013 · 2 comments
Labels

Comments

@manutenfruits
Copy link
Contributor

When accessing the shiva-server from a different address or port using AJAX from chrome (after enabling CORS on shiva, of course), the browser first makes a preflight request, using the OPTIONS method.
I've tried with curl and although I can see the Access-Control-Allow-Origin: * on GET request, the OPTIONS request doesn't return that header, so I can't make a single request from Chrome due to this issue.

@tooxie
Copy link
Owner

tooxie commented May 31, 2013

Sorry for taking so long to address this issue, but finally here is a PR to fix it: #85 Please test and approve.

This seems to be caused by an issue in Flask-RESTful, which I already reported: flask-restful/flask-restful#93

Thanks for the report!

@tooxie tooxie closed this as completed Jun 2, 2013
@tooxie
Copy link
Owner

tooxie commented Jun 2, 2013

Fixed by #85.

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

No branches or pull requests

2 participants