CORS errors for GraphQL requests #4791
Unanswered
andyra
asked this question in
Troubleshooting
Replies: 0 comments
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.
-
I'm using NextJS as a front-end for Statamic, but I'm running into CORS errors when requesting data from Statamic via GraphQL:
The config/cors.php file in my Statmic project looks like it's in good shape for allowing access, though:
When I open Chrome's developer tools and check the Network tab for response headers for
https://office.tes.fm/graphql
, I would expect to seeaccess-control-allow-origin: *
, but this is what the response looks like:Is there some other way I need to set
access-control-allow-origin
in Statamic/Laravel to allow GraphQL requests from my front-end?Beta Was this translation helpful? Give feedback.
All reactions