Understanding CORS Preflight Requests
UML Sequence Diagrams · made in Skemio

What it shows
- Non-simple requests (JSON, custom headers) trigger an automatic OPTIONS call.
- The browser halts the actual request until the origin and methods are approved.
- Access-Control-Max-Age allows browsers to cache preflight responses.
The takeaway
CORS preflight is a client-side security gate enforced by browsers, not your backend server.
- #CORS
- #WebDev
- #FrontendDev
- #APIDesign
- #SoftwareEngineering





