CORS Preflight Request Analyzer
Inspect the browser-sent CORS preflight request headers (Access-Control-Request-Method, Access-Control-Request-Headers, Origin) used before a cross-origin request. Validates the requested method token, splits the requested field-name list, and compares headers against the Allow-* response to anticipate whether the preflight will succeed.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
Reading and writing the OPTIONS request
Analyze mode takes a pasted preflight header block and reports, header by header, what it means: the Access-Control-Request-Method token is checked against the method grammar, the Access-Control-Request-Headers list is split into field names with any forbidden or malformed name flagged, and an Origin of null is called out. Build mode does the reverse.
Working out why a cross-origin call is blocked
It is for the moment a fetch from your app to another origin fails in the console. Paste the OPTIONS request headers from the network panel to see exactly which field names the browser asked for, then check that the server's Access-Control-Allow-Headers echoes them — a missing entry there is a common cause of preflight failure.
Options
Mode selects Analyze or Build. In Build mode, Method and Request headers produce the block, with the method upper-cased and each requested header name validated as an HTTP token. In Analyze mode the options are ignored.
What it will flag
Forbidden request headers such as Cookie, Host, Origin and Content-Length cannot be listed in a preflight and are reported as errors, along with malformed tokens and duplicate Access-Control-Request-Headers lines. Safelisted methods such as GET and POST are noted as needing no preflight. The tool reads request headers only, so a clean analysis is not a promise the real request will succeed.
Analysed offline
Pasted headers are parsed in your browser, no request is made to any origin and nothing is uploaded. That makes it safe for internal hostnames and for debugging a production API without generating traffic.
Questions
When is a preflight sent?
For requests that are not simple — non-safelisted methods (PUT, PATCH, DELETE) or non-safelisted headers — the browser sends an OPTIONS preflight first, and proceeds only if the response allows it.
What do the two headers mean?
Access-Control-Request-Method states the method the real request will use; Access-Control-Request-Headers lists the custom headers it will send.
How do I read this vs Allow-* ?
The server must echo back Access-Control-Allow-Methods/Headers covering those requested values; otherwise the browser blocks the real request.
Related tools
See category- CORS Headers Builder & Analyzer
- HTTP Header Analyzer
- :nth-child An+B Evaluator
- .editorconfig Generator
CORS Headers Builder & Analyzer
Build a full CORS policy or analyze pasted Access-Control-* response headers.
HTTP Header Analyzer
Paste any HTTP headers and auto-detect, parse and check every one of them.
:nth-child An+B Evaluator
Parse CSS An+B (:nth-child, :nth-of-type) microsyntax, validate it, and list which child indices it matches.
.editorconfig Generator
Generate an .editorconfig with your indentation, line-ending and charset settings.