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

Support OPTIONS requests #69

Merged
merged 1 commit into from
Mar 28, 2018
Merged

Support OPTIONS requests #69

merged 1 commit into from
Mar 28, 2018

Conversation

vektah
Copy link
Collaborator

@vektah vektah commented Mar 28, 2018

Respond to OPTIONS requests with the Allow'ed methods. This is not CORS preflight (Access-Control-Allow-*), for that you probably want https://github.com/rs/cors

It includes a fix to respond with a 405 for any other unsupported methods, rather then running the POST logic.

see #68

@vektah vektah merged commit 6129fd2 into master Mar 28, 2018
@vektah vektah deleted the support-options branch March 28, 2018 14:07
cgxxv pushed a commit to cgxxv/gqlgen that referenced this pull request Mar 25, 2022
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

Successfully merging this pull request may close these issues.

1 participant