I'm experiencing the error as descried in the cors issues documentation: https://docs.medusajs.com/troubleshooting/cors-issues/
My issue is that I have everything on default my cors is setup as explained in the docs:
const ADMIN_CORS = process.env.ADMIN_CORS || "http://localhost:7000,http://localhost:7001";
// CORS to avoid issues when consuming Medusa from a client
const STORE_CORS = process.env.STORE_CORS || "http://localhost:8000";
I console.log both of these to ensure the localhost is correct. I can confirm I'm running on 8000 and 7000 but I still get the error. Any idea why this is happening? Node 14
If you are experiencing connection issues when trying to access your Medusa server from a storefront, it is most likely due to Cross-Origin Resource Sharing (CORS) issues.