Online CORS Preflight Simulator & Policy Tester
Simulate browser Cross-Origin Resource Sharing (CORS) preflight checks locally. Test client origin, headers, and credentials against server Access-Control headers with zero live network calls.
1. Client Request Parameters
2. Server Access-Control Response Headers
3. CORS Security Evaluation
Understanding CORS & Preflight Mechanics
The Same-Origin Policy (SOP) prohibits scripts running on one origin from loading resources from another origin. Cross-Origin Resource Sharing (CORS) is a browser mechanism that allows servers to selectively permit cross-origin access.
When is a Preflight OPTIONS Request Triggered?
A browser automatically issues a preflight request before the actual request if any of the following apply:
- The HTTP method is not
GET,HEAD, orPOST(e.g.PUT,DELETE,PATCH). - The request includes custom HTTP headers (such as
Authorization,X-Custom-Header). - The
Content-Typeis anything other thantext/plain,multipart/form-data, orapplication/x-www-form-urlencoded(e.g.application/json).