Skip to content
View cross-origin-cors-reference's full-sized avatar

Block or report cross-origin-cors-reference

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

cross-origin.com — the CORS & cross-origin engineering reference

cross-origin.com

A deep, practical reference for CORS, preflight requests, and browser cross-origin security.
www.cross-origin.com


What this is

cross-origin.com is a free, in-depth technical reference for developers and security engineers who work with cross-origin communication every day. It takes the parts of the web platform that most people learn by trial and error — the Same-Origin Policy, CORS headers, preflight negotiation, credentialed requests, and the proxy layers in between — and explains them clearly, with worked examples grounded in the WHATWG Fetch and W3C specifications.

Every page is written to answer a real question you might hit in production: why did the browser block this request, and exactly what do I change to fix it?

What it covers

The reference is organised into four in-depth areas:

Why it exists

CORS errors are one of the most common — and most misunderstood — obstacles in modern web development. The official specs are precise but dense, and most tutorials stop at "just add a wildcard header," which is often wrong and sometimes insecure. This reference aims to be the resource that actually explains the mechanics, so you can fix the root cause with confidence and without opening a security hole.

Built with

  • Eleventy — static site generation from Markdown + Nunjucks
  • Cloudflare Pages — global edge hosting
  • Hand-authored SVG diagrams, structured data (JSON-LD), and a PWA manifest for offline reading

Running locally

npm install
npx @11ty/eleventy --serve

The site builds to _site/. Open the printed local URL to preview.

Contributing

Spotted an inaccuracy, a broken example, or a gap in coverage? Issues and pull requests are welcome — corrections to the technical content are especially appreciated.


Read the full reference at www.cross-origin.com →

Popular repositories Loading

  1. cross-origin-cors-reference cross-origin-cors-reference Public

    In-depth technical reference for CORS, preflight requests, and browser cross-origin security. Source for https://www.cross-origin.com

    Nunjucks

  2. cors-doctor cors-doctor Public

    Diagnose exactly why a browser blocks or allows a cross-origin request. Sends real preflight and actual requests, then explains every Access-Control-* mismatch in plain English. Python 3, stdlib only.

    Python

  3. cors-config-generator cors-config-generator Public

    Generate correct, copy-pasteable CORS configuration for 15 server stacks from your actual requirements, with a live security review and a browser-behaviour preview. Single-page app, no build step, …

    JavaScript

  4. preflight-cache-analyzer preflight-cache-analyzer Public

    Chrome DevTools panel that surfaces every CORS preflight, models the browser preflight cache, and flags redundant preflights costing you latency. Manifest V3, loaded unpacked, zero permissions.

    JavaScript

  5. cors-misconfig-scanner cors-misconfig-scanner Public

    Defensive security scanner for dangerous CORS configurations: origin reflection, null-origin trust, allowlist matching bugs. Reports exploitability with remediation. CLI plus GitHub Action, SARIF o…

    Python

  6. same-origin-simulator same-origin-simulator Public

    Interactive playground that fires real cross-origin requests between local sandboxed origins so you can watch the same-origin policy, credentials rules and preflight caching play out live. 15 guide…

    Python