HTTP Security Headers Reference

Recommended response headers and starting values. Tune CSP and COEP for your site before deploying. Download: CSV · JSON.

HeaderExample valuePurpose
Strict-Transport-Securitymax-age=31536000; includeSubDomainsForces HTTPS for future visits
Content-Security-Policydefault-src 'self'Restricts sources of scripts, styles and other content (mitigates XSS)
X-Content-Type-OptionsnosniffStops browsers MIME-sniffing responses
X-Frame-OptionsDENYBlocks framing (clickjacking); superseded by CSP frame-ancestors
Referrer-Policystrict-origin-when-cross-originLimits referrer information sent to other sites
Permissions-Policycamera=(), microphone=(), geolocation=()Disables browser features for the page
Cross-Origin-Opener-Policysame-originIsolates browsing context from cross-origin windows
Cross-Origin-Resource-Policysame-originPrevents other origins loading the resource
Cross-Origin-Embedder-Policyrequire-corpRequires cross-origin resources to opt in; enables isolation
Cache-Controlno-storePrevents caching of sensitive responses
X-XSS-Protection0Legacy; disable the old XSS auditor and rely on CSP
Clear-Site-Data"cache", "cookies"Clears browser data on logout