-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 OPTIONS request for CORS-enabled servers #68
Comments
Why not use a piece of dedicated middleware for this? I'm quite partial to https://github.com/rs/cors |
I'm already using it... But I see I probably screwed this up by enabling |
@vektah Yup, that was my fault. I've accidentally set |
Hello @vektah, firstly I have to say that this library is awesome!
I've run into an issue with CORS enabled server using gqlgen. All
OPTIONS
requests from client fails (Bad request -{“data”:null,“errors”:[{“message”:“json body could not be decoded: EOF”}]}
), because currently onlyGET
andPOST
requests are supported.Can you please add
OPTIONS
request support?Thank you very much in advance!
The text was updated successfully, but these errors were encountered: