We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
When the client is on a different origin than the server, the client sends a preflight OPTIONS request to OGS, which returns a 404:
ocaml-graphql-server/graphql-cohttp/src/graphql_cohttp.ml
Line 188 in 940e86f
That prevents directly using make_callback in this scenario.
make_callback
What do you think about adding a ?allowed_origins optional parameter that adds the right handler to OPTIONS /graphql? I'm happy to provide a patch.
?allowed_origins
OPTIONS /graphql
Thanks!
The text was updated successfully, but these errors were encountered:
Yes, that would be great 😄
Sorry, something went wrong.
No branches or pull requests
Hi,
When the client is on a different origin than the server, the client sends a preflight OPTIONS request to OGS, which returns a 404:
ocaml-graphql-server/graphql-cohttp/src/graphql_cohttp.ml
Line 188 in 940e86f
That prevents directly using
make_callback
in this scenario.What do you think about adding a
?allowed_origins
optional parameter that adds the right handler toOPTIONS /graphql
? I'm happy to provide a patch.Thanks!
The text was updated successfully, but these errors were encountered: