Open mgroves opened 1 year ago
If the backend is about to run on a different host/port than the frontend, make sure to handle OPTIONS too and return correct Access-Control-Allow-Origin and Access-Control-Allow-Headers (e.g. Content-Type).
OPTIONS
Access-Control-Allow-Origin
Access-Control-Allow-Headers
Content-Type
https://realworld-docs.netlify.app/docs/specs/backend-specs/cors
If the backend is about to run on a different host/port than the frontend, make sure to handle
OPTIONS
too and return correctAccess-Control-Allow-Origin
andAccess-Control-Allow-Headers
(e.g.Content-Type
).https://realworld-docs.netlify.app/docs/specs/backend-specs/cors