Small tools. Better flow.

CORS header checker

Interpret CORS headers against request conditions.

Usage guide

Your input stays in this browser.

Input & options

Text 1 MB

View code examples ↓

Result

Your result will appear here.

Code examples

Starting points for your own code. Run them in the environment shown below.

Node.js 22+ · ES module (.mjs)

Current inputs apply only to fields used by the example. Selected files are not embedded.

const origin = "https://app.example.com";
const credentials = true;
const headers = new Headers({
  "Access-Control-Allow-Origin": "https://app.example.com",
  "Access-Control-Allow-Credentials": "true",
});
const allowed = headers.get("access-control-allow-origin");
const originAllowed = allowed === origin || (allowed === "*" && !credentials);
const credentialsAllowed = !credentials || headers.get("access-control-allow-credentials") === "true";
console.log({ originAllowed, credentialsAllowed });
// Preflight method/headers must also pass; the browser enforces CORS.

Put it to work

Interpret CORS headers against request conditions.

Details that matter

Format and meaning

Interprets pasted headers only. It does not test server reachability or guarantee browser request success.

Supported scope and limits

Text 1 MB

Split inputs that exceed the limit. If a format or algorithm is unsupported, choose a tool that matches your requirements instead of silently changing the format.