Fix Access-Control-Allow-Origin (CORS) Header
AntoineKM opened this issue · 0 comments
AntoineKM commented
To reproduce:
- Make a simple React app
- Make a request to
https://shouldideploy.today/api
inside this app - You'll get this error:
Access to fetch at 'https://shouldideploy.today/api' from origin 'http://localhost:3002' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Expected Behavior
Allowing requests from all origins