woo-next icon indicating copy to clipboard operation
woo-next copied to clipboard

Cors issue

Open ebisLab opened this issue 3 years ago • 1 comments

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

ebisLab avatar Feb 27 '21 16:02 ebisLab

Please check your .htaccess file is you are using apache, to check if it allows the request.

imranhsayed avatar May 08 '21 17:05 imranhsayed