pristas-peter / wp-graphql-gutenberg

Query gutenberg blocks with wp-graphql
https://wp-graphql-gutenberg.netlify.app
GNU General Public License v3.0
301 stars 62 forks source link

Getting cors error using useQuery when plugin is active #185

Open brittonwalker opened 1 year ago

brittonwalker commented 1 year ago

When the plugin is active I get this error when trying to use Apollo's useQuery clientside. I noticed this first when my search page stopped returning results.

Access to fetch at 'https://guild-wordpress.test/graphql' from origin 'http://localhost:3000' has been blocked by CORS policy: Request header field content-type is not allowed by Access-Control-Allow-Headers in preflight response.