- Home
- Free tools
- Security headers generator
The headers your site should send, as config you can paste.
Choose the third-party services the site uses, decide how strict to be, and get the Content-Security-Policy and the rest of the security headers in the format your platform expects. Run the website check first and the page pre-selects what is missing.
Reads the site's current headers and pre-selects the gaps.
Rolling out a CSP without breaking the site
- Deploy as
Content-Security-Policy-Report-Only. Nothing is blocked; violations appear in the browser console. - Open every page type (home, forms, checkout, embedded video, chat widget) and read the console. Add any origin that is legitimately needed.
- Move inline
<script>blocks into files. Inline event handlers such asonclick=also need to move. - Switch the header name to
Content-Security-Policy. Keep watching the console for a week.
Where the headers go
On a CDN or hosting platform (Cloudflare, Vercel, Netlify) they are set once for the whole site and the tabs above give the exact format. On a self-managed server they belong in the web server config, not in application code, so they apply to error pages and static files too. WordPress sites usually get them from the web server or from a Cloudflare rule in front of the site.
Common questions
Google Tag Manager needs unsafe-inline. Is that true?
Will HSTS break our intranet or mail host on a subdomain?
X-Frame-Options or frame-ancestors?
Want the platform built on these foundations?
Every Intelligent Web Platform we ship scores an A on headers, serves a strict CSP, and is monitored after launch. If the current site cannot get there, that is a useful thing to know before the next redesign.