A Hacker News Discussion with 176 Points
Based on fosterelli.co
2019
Why CORS remains one of the most misunderstood web security concepts
What developers often get wrong about CORS
CORS is purely a server configuration issue
CORS protects against all security threats
CORS errors mean the backend is malfunctioning
Turning off CORS solves the problem
Understanding the complexity behind CORS errors
Client initiates cross-origin request
Browser sends OPTIONS request for complex requests
Server responds with CORS headers
Browser validates and allows or blocks
Actual request proceeds if permitted
CORS is fundamentally about trust. When a browser enforces CORS, it's asking: "Should I trust this origin with the response?"From the discussion
Understanding CORS leads to better, more secure web applications