What is Security Headers?

Security headers are HTTP response headers that tell browsers how to harden your site against common attacks. The main six are Content-Security-Policy (CSP), Strict-Transport-Security (HSTS), X-Frame-Options, X-Content-Type-Options, Referrer-Policy, and Permissions-Policy. Each adds a specific defense with minimal configuration.

In more detail

Security headers are cheap insurance. They defend against attacks (XSS, clickjacking, MIME-sniffing, SSL stripping, info leakage) that rely on browser behavior you can change with one header. Most sites have 0 or 1 of the 6; adding the remaining 5 takes an hour and blocks a meaningful slice of web attacks.

They are applied at the framework level (Next.js `headers()` in next.config.js), the host level (Vercel, Cloudflare), or the web server level (nginx, Apache).

Why this matters

Why builders care

Security headers are the fastest way to improve your SafeToShip score. They require no code changes and no new dependencies — just a few lines in your hosting config. Every missing header is a finding; every present one is a point.

See where your site stands

Paste a URL, get a score in 60 seconds. Free, no signup.