Commerce demo store built for the Jamstack. Built with Commerce.js, Next.js, and can be one-click deployed to Netlify. Includes product catalog, customer login, categories, variants, cart, checkout, payments (Stripe) order confirmation, and printable receipts.
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 ()
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
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 ()