FREE TOOL

Security header guide

Understand common headers and starting values.

HEADERPURPOSESTARTING VALUE
Strict-Transport-SecurityTells browsers to use HTTPS only.
Add includeSubDomains only if every subdomain supports HTTPS.
max-age=31536000; includeSubDomains
Content-Security-PolicyLimits origins for scripts, styles and other resources.
Test in report-only mode first.
default-src 'self'
X-Content-Type-OptionsPrevents browsers from guessing the content type.nosniff
X-Frame-OptionsControls whether a page can appear inside a frame.
The modern equivalent is frame-ancestors in CSP.
SAMEORIGIN
Referrer-PolicyLimits referrer information sent to other websites.strict-origin-when-cross-origin
Permissions-PolicyDisables browser features the site does not use.
Adapt it to the features your site needs.
camera=(), microphone=(), geolocation=()
Cross-Origin-Opener-PolicyIsolates the browsing context from other-origin windows.
May disrupt sign-in flows that use popups.
same-origin
Scope and limitations. Educational reference. Adapt the values to your website’s needs.
View all tools