Security Header Reference

HTTP Security Headers Guide

HTTP security headers are server response directives that instruct browsers on how to behave when handling your site's content. Implementing them correctly is one of the highest-ROI security improvements available.

Strict-Transport-Securityhigh priority

Forces browsers to always use HTTPS, preventing SSL stripping attacks and protocol downgrades.

Learn more
Content-Security-Policyhigh priority

The most powerful XSS defense — restricts which resources the browser can load on your page.

Learn more
X-Frame-Optionshigh priority

Prevents your site from being embedded in iframes, blocking clickjacking (UI redressing) attacks.

Learn more
X-Content-Type-Optionsmedium priority

Prevents browsers from MIME-sniffing responses away from the declared content type.

Learn more
Referrer-Policymedium priority

Controls how much referrer information is included when navigating away from your site.

Learn more
Permissions-Policymedium priority

Restricts browser feature access (camera, mic, geolocation) for your page and embedded iframes.

Learn more
Cross-Origin-Opener-Policymedium priority

Isolates your browsing context from cross-origin documents to prevent cross-origin attacks.

Learn more
Cross-Origin-Resource-Policymedium priority

Prevents other origins from loading your resources, protecting against Spectre-based attacks.

Learn more

Minimum Recommended Headers

Every production website should have at minimum:

Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Content-Security-Policy: default-src 'self'; ...
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
Referrer-Policy: strict-origin-when-cross-origin
Permissions-Policy: camera=(), microphone=(), geolocation=()