Quick Answer
Browsers enforce Same-Origin Policy รขโฌโ your page at domain-a.com can't fetch from domain-b.com without server permission. CORS (Cross-Origin Resource Sharing) headers on the server grant permission: Access-Control-Allow-Origin: * (or specific domain). Preflight OPTIONS requests check permissions for non-simple requests. You can't bypass CORS from the browser รขโฌโ the server must allow it.
Answer
Browsers enforce CORS. Servers must send headers allowing specific origins.
S
SugharaIQ Editorial Team
Verified Answer
This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.