Security Headers Generator
Pick your HSTS, CSP, framing and referrer settings and get ready-to-paste config for Next.js, nginx, Apache, Express, Vercel or Netlify.
Frequently Asked Questions
Which security headers should every site send?
Start with X-Content-Type-Options: nosniff, a Referrer-Policy, X-Frame-Options (or CSP frame-ancestors) and a Permissions-Policy — they rarely break anything. Add Strict-Transport-Security once HTTPS works everywhere, and a Content-Security-Policy in report-only mode first.
Why is the CSP report-only by default?
A Content-Security-Policy that blocks too much can break scripts, styles and third-party embeds. Report-only mode logs every violation in the browser console without blocking anything, so you can adjust the policy before enforcing it.
Is HSTS preload safe to enable?
Only when every subdomain serves HTTPS and you're sure you'll keep it that way. Preloaded domains are built into browsers, and getting removed takes months, so a mistake can make subdomains unreachable over HTTP for a long time.
Does this tool send my settings anywhere?
No. The configuration is generated in your browser.