Just for development purposes. I've tried setting all of the cors headers to "*" in the route an in the projectConfig, but it doesn't seem to change the behavior. It alwasy rejects my requests for violations of CORS policy. I'm just running on the default vanilla localhost urls and ports (localhost:9000 on server, localhost:8000 for client).
#Is it possible to disable cors checking on the server side?
5 messages · Page 1 of 1 (latest)
the default install just works without any problems on localhost
I believe you can disable CORS per endpoint, by setting a CORS variable in your endpoint file: https://docs.medusajs.com/development/api-routes/create#cors-opt-out
Setting to "*" will cause issues also.
What is the procedure for creating a custom currency, i.e. not one from the official list? I thought that I should be able to just add a record to the currency table, but it doesn't work that way. When I associate that currency in my admin, I get an error that the property 'decimal_digits' is not found. (and yes, I've read https://docs.medusajs.com/modules/regions-and-currencies/currencies)