Recommended response headers and starting values. Tune CSP and COEP for your site before deploying. Download: CSV · JSON.
| Header | Example value | Purpose |
|---|---|---|
Strict-Transport-Security | max-age=31536000; includeSubDomains | Forces HTTPS for future visits |
Content-Security-Policy | default-src 'self' | Restricts sources of scripts, styles and other content (mitigates XSS) |
X-Content-Type-Options | nosniff | Stops browsers MIME-sniffing responses |
X-Frame-Options | DENY | Blocks framing (clickjacking); superseded by CSP frame-ancestors |
Referrer-Policy | strict-origin-when-cross-origin | Limits referrer information sent to other sites |
Permissions-Policy | camera=(), microphone=(), geolocation=() | Disables browser features for the page |
Cross-Origin-Opener-Policy | same-origin | Isolates browsing context from cross-origin windows |
Cross-Origin-Resource-Policy | same-origin | Prevents other origins loading the resource |
Cross-Origin-Embedder-Policy | require-corp | Requires cross-origin resources to opt in; enables isolation |
Cache-Control | no-store | Prevents caching of sensitive responses |
X-XSS-Protection | 0 | Legacy; disable the old XSS auditor and rely on CSP |
Clear-Site-Data | "cache", "cookies" | Clears browser data on logout |