Open kevincam3 opened 9 months ago
CORS is enabled for all routes by default. There should be not need to configure it.
Unfortunately it's not.
I'll have a look, thanks for the report
Also just so you have a little background. I'm using Sentry.io and it adds some headers to do browser tracing and it's when it adds these headers that I get the CORS error. Thanks.
Any news on this issue? I get the same CORS. I am using just React with Vite and "json-server": "^1.0.0-alpha.23"
The issue is only with alpha releases. i downgraded to version 0.17.4 and indeed CORS is enabled out of the box.
The issue is only with alpha releases. i downgraded to version 0.17.4 and indeed CORS is enabled out of the box.
I love you bro, I had the same problem too and it works downgraded the dependency.
How can I configure CORS?