Security Headers
Write the HTTP security headers for a site and put them where the platform wants them: Cloudflare, Vercel, Netlify, nginx or Next.js. No squirrel CLI is needed; curl is enough.
Headers reduce the damage of some attacks (clickjacking, MIME sniffing, downgrade to http, injected scripts). They do not fix a vulnerable app. A missing header is a finding to fix; a full set of headers is not proof the site is secure.
Step 1: see what is sent now
curl -sI https://example.com | grep -i -E '^(strict-transport|content-security|x-frame|x-content-type|referrer-policy|permissions-policy|cross-origin|set-cookie)'
Check a page, not only the homepage, and the response a browser gets (not a cached one from a CDN with other rules). Note which headers are already set and by what: the app, the CDN or the host.
Step 2: the baseline set
OWASP's secure headers project (https://secure-headers-project.owasp.org/best-practices) proposes this baseline:
Installs: 2.3K | GitHub stars: 110 | First seen: 4 days ago


