Typical fixes
- Return
Access-Control-Allow-Origin: https://your-site.com(or*for public data). - Answer OPTIONS preflights with 204 and the allowed methods and headers.
- With cookies, send
Access-Control-Allow-Credentials: trueand a specific origin, never*.
Frequently asked questions
Why does Postman work but my browser does not?
CORS is enforced only by browsers; servers and tools like Postman ignore it.
What is a preflight?
An automatic OPTIONS request browsers send before non-simple requests, e.g. with JSON or custom headers.
Is it free?
Yes.

