You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered the following problem: using storybook locally on port 6006 I was unable to make a request to my django web app which is using both django-channels and the graphql library strawberry. The reason is the consumer class provided by strawberry doesn't handle the pre-flight request where the method is "OPTION".
Would it be possible to add a CORS middleware to this library?
Hi
Not sure if I should log this with yourselves or strawberry: https://github.com/strawberry-graphql/strawberry.
I encountered the following problem: using storybook locally on port 6006 I was unable to make a request to my django web app which is using both django-channels and the graphql library strawberry. The reason is the consumer class provided by strawberry doesn't handle the pre-flight request where the method is "OPTION".
Would it be possible to add a CORS middleware to this library?
I found the following which seems to work: https://github.com/hot666666/asgi-cors-strawberry/blob/main/asgi_cors_strawberry/middleware.py
I'd feel better using it though if you guys could validate it in the course of adding it to the channels library.
Let me know if it would be better to log this with strawberry.
Thanks.
The text was updated successfully, but these errors were encountered: