CORS error using apollo client from react #776
Replies: 1 comment 1 reply
-
Hi! Can you please retry? GraphQL was down |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The service is blocked by CORS when accessed through @apollo/client with graphql packages from react localhost:3000.
The same setup works with https://graphql.anilist.co/
The problem is if mode: "no-cors" is passed the fetch payload won't be sent as application/json and rather would be sent as text/plain which gives 502.
Please add a CORS policy for Access-Control-Allow-Origin: *
CC: @phalt
Beta Was this translation helpful? Give feedback.
All reactions