#Error running medusa in production. ERR_NAME_NOT_RESOLVED.
4 messages · Page 1 of 1 (latest)
I have set STORE_CORS in the .env file to be STORE_CORS=http://storefront:8000 and I have also tried setting them to allow all http requests like in the docs, but none of these worked for me.
I do not think the problem are cors since the medusa client fetches data succesfully from the storefront, but the middleware fails.
@buoyant mural I think it may be due to the fact that middleware is ran on edge, so the domain that I am passing in STORE_CORS might be different than the one requesting the ${BACKEND_URL}/store/regions? But it does not make any sense why allowing CORS for all http requests still fails for this :/