#Error running medusa in production. ERR_NAME_NOT_RESOLVED.

4 messages · Page 1 of 1 (latest)

buoyant mural
#

hi! do you have configured the store cors set up in production? I have them on my envs like this:
ADMIN_CORS=https://[subdomain].up.railway.app,https://[othersubdomain].up.railway.app,https://[subdomain].[domain].com,https://[subdomain].[domain].com

wet wasp
#

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 :/