Skip to content
Tesserae

Keyboard shortcuts

Focus search
/
This help dialog
?
Run the current tool
Ctrl/⌘ +Enter
Copy the output (when an output is focused)
Ctrl/⌘ +C

Shortcuts are ignored while you are typing in an input, a textarea or a select.

Web & CSS Beta

CORS Headers Builder & Analyzer

Create any Access-Control-* response header from one form, or paste a CORS response to check it. Validates origins, method and header tokens, the wildcard-with-credentials conflict, and preflight cache time — all on your device.

On-device No network Offline-ready

🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.

Try:

Options

Use * or one full http(s) origin. Not a list.

How long browsers may cache a preflight response.

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

One tool for the whole Access-Control-* family

CORS is a set of response headers, and getting one wrong usually surfaces as an opaque browser error. This tool covers them all: Allow-Origin, Allow-Credentials, Allow-Methods, Allow-Headers, Expose-Headers and Max-Age. Build mode emits the ones you need as copyable lines; analyze mode reads a pasted response and tells you what each header permits and which values are invalid.

Building a policy

Pick a target — a full policy or a single header — and fill the values in. The origin field takes * or one full http(s) origin, not a list, because the header itself carries a single value. Methods and headers are comma-separated lists validated as HTTP tokens. The output is a set of header lines with notes, such as the reminder to add Vary: Origin when the origin is chosen per request.

The wildcard-with-credentials trap

The most common CORS mistake is combining Access-Control-Allow-Origin: * with Access-Control-Allow-Credentials: true. That combination is forbidden: once credentials are allowed, the origin must name the specific caller and cannot be a wildcard, and the same applies to * in Allow-Methods, Allow-Headers and Expose-Headers. The builder refuses to emit the bad combination and the analyzer flags it.

Analyzing an existing response

Paste the raw header lines from a devtools panel and each recognised header becomes a row with its value, a Valid or Invalid status and a plain-English assessment. Duplicate lines, malformed tokens and a wildcard used with credentials are called out. A bare number falls back to a Max-Age check and any other bare string to an Allow-Origin check, so a single value is easy to verify.

Checked on your device

Validation and generation are pure string handling in this tab — no request is sent, so a real origin list or an internal hostname stays private. The tool needs no network at all.

Questions

Can Access-Control-Allow-Origin be * with credentials?

No. When Access-Control-Allow-Credentials: true is set, the allowed origin must name the specific requesting origin and cannot be a wildcard.

Why add Vary: Origin?

If the allowed origin is chosen per request, Vary: Origin stops caches serving one caller the origin grant meant for another.

Which methods trigger a preflight?

GET, HEAD, and POST with simple headers are sent directly; most other methods and headers trigger an OPTIONS preflight answered with Allow-Methods and Allow-Headers.

See category