Support OPTIONS requests
See original GitHub issueHi, I keep getting a 405
when using the example code, and I’m wondering if it’s a CORS issue, since my frontend and backend are running on different ports. If so, how do I enable CORS with Ariadne?
Issue Analytics
- State:
- Created 5 years ago
- Comments:18 (5 by maintainers)
Top Results From Across the Web
OPTIONS - HTTP - MDN Web Docs
The HTTP OPTIONS method requests permitted communication options for a given URL or server. A client can specify a URL with this method, ......
Read more >How do I send OPTIONS request? - ReqBin
The HTTP OPTIONS request is used to describe communication options for the target resource. Browsers send HTTP OPTIONS requests to find out the ......
Read more >Why is an OPTIONS request sent and can I disable it?
Options request is a preflight request when you send (post) any data to another domain. It's a browser security issue. But we can...
Read more >Why Is an OPTIONS Request Sent? - Baeldung
The OPTIONS request mentioned in the introduction is a preflight request, which is part of the CORS (Cross-Origin Resource Sharing).
Read more >OPTIONS Requests: How to Deal - Medium
OPTIONS requests are pre-flight requests in Cross-origin resource sharing (CORS). When you are making an HTTP or Ajax request to a server that...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You can wrap one in the other:
GraphQL middlewares are separate from ASGI middlewares.
Yeop, Ariadne only supports
GET
andPOST
, missingOPTIONS
😂We’ll be fixing that, but in meantime you would have to wrap
GraphQLMiddleware
with a custom one that handlesOPTIONS
request and sendsCORS
headers.