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

Allow preflighted cross-domain requests #346

Merged
merged 3 commits into from Feb 10, 2012
Merged

Allow preflighted cross-domain requests #346

merged 3 commits into from Feb 10, 2012

Conversation

bkonkle
Copy link
Contributor

@bkonkle bkonkle commented Feb 8, 2012

Since we're using a custom header, we actually need to allow for preflighted requests. This patch allows /api/store/ to respond to OPTIONS requests with a blank HttpRequest() with the Access-Control-Allow-Methods header set.

I've tested this out in production in our web app, and Raven.js is now working fine cross-domain.

dcramer added a commit that referenced this pull request Feb 10, 2012
Allow preflighted cross-domain requests
@dcramer dcramer merged commit db06377 into getsentry:master Feb 10, 2012
@github-actions github-actions bot locked and limited conversation to collaborators Dec 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants