Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while choosing Countries on checkout #215

Open
IvanSmiths opened this issue Jul 8, 2021 · 1 comment
Open

Error while choosing Countries on checkout #215

IvanSmiths opened this issue Jul 8, 2021 · 1 comment

Comments

@IvanSmiths
Copy link

Hi everyone. I've just copied this repository, but in my case, i get this error in the checkout page.

Seems like a CORS origin error, but i haven't setup any CORS policy in my website

Access to XMLHttpRequest at 'https://api.chec.io/v1/services/locale//subdivisions' from origin 'https://mydomain.vercel.app' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status. checkout-fca2b2d3ad851f304f05.js:1 Error: Network Error at e.exports (_app-ce4553cd6c8a487f2545.js:1) at XMLHttpRequest.d.onerror (_app-ce4553cd6c8a487f2545.js:1) api.chec.io/v1/services/locale//subdivisions:1 Failed to load resource: net::ERR_FAILED shipping_options:1 Failed to load resource: the server responded with a status of 422 ()

@robbieaverill
Copy link
Contributor

Hi @IvanSmiths, do you have any more information about this request? The 422 response code indicates that there is probably a response body somewhere that might contain more useful information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants