woo-next
woo-next copied to clipboard
Cors issue
I got this error one day and I'm not sure how to debug it , I believe it starts in the middleware you created inside the client variable in the ApolloClient's file. (inside the createHttpLink)
Access to fetch at 'https://xxxxxxx/graphql' from origin 'http://localhost:8181' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
createHttpLink.js?a012:93 POST https://xxxx/graphql net::ERR_FAILED
Please check your .htaccess file is you are using apache, to check if it allows the request.