Skip to content

cross-origin-cors-reference/cross-origin-cors-reference

Repository files navigation

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 →

Releases

Packages

Contributors

Languages