HTTP Security Header Reference
Every HTTP security header explained with syntax and recommended values, an interactive CSP builder, and ready-to-paste config snippets for Nginx, Apache, Express, and Next.js -- a reference and generator, never a live scanner.
What this tool does
A reference catalog of every common HTTP security header -- what it does, its syntax, and a reasonable starting value -- an interactive Content-Security-Policy builder that constructs a real policy directive by directive, and a config generator that turns your chosen headers into ready-to-paste snippets for Nginx, Apache, Express, and Next.js. This is a reference and generator, not a scanner -- for grading a live site's actual response headers, use this site's Security Headers Checker instead.
Why these headers exist
Most security headers exist to turn off something the web platform allows by default but that most sites don't actually need -- being framed by another site, loading scripts from anywhere, leaking a full referrer URL to third parties, or letting any embedded page use the camera. Each header is an opt-in restriction, and browsers only enforce what a site explicitly asks for, which is exactly why a site with none of these headers set is still fully functional -- just less defended against a specific category of attack.
Content-Security-Policy, built interactively
CSP is the most powerful and most error-prone of these
headers -- a single misconfigured directive can either leave a
real gap (an overly permissive script-src) or
break the site outright (forgetting a legitimate CDN). The CSP
Builder tab lets you toggle directives and sources and see the
exact resulting policy string build up live, rather than
hand-assembling it from memory.
Cross-origin isolation: COOP, COEP, and CORP
Cross-Origin-Opener-Policy,
Cross-Origin-Embedder-Policy, and
Cross-Origin-Resource-Policy work together to
isolate a page from other origins strongly enough to unlock
powerful browser APIs like SharedArrayBuffer.
They're also the headers most likely to break something if
deployed carelessly -- COEP's require-corp value in
particular can block third-party embeds (ads, widgets,
some CDN-hosted assets) that don't send a matching CORP header
themselves. Stage these in a report-only or test environment
before enforcing them on a production site that embeds
third-party content.
Privacy
Everything -- the reference, the CSP builder, and the config generator -- runs entirely in your browser. Nothing is sent anywhere, and no live request is ever made to any site.