Inventory scripts and third-party resources
Why it matters:A CSP is easier to maintain when you know what the site actually loads.
Safe action:List trusted script, style, image, frame, and connection sources before enforcing a policy.
A security headers checklist helps website owners review browser-side hardening controls such as Content Security Policy, HSTS, X-Content-Type-Options, X-Frame-Options, Referrer-Policy, Permissions-Policy, and secure cookie flags.
Security headers are HTTP response headers that tell browsers how to handle content, framing, transport security, referrer data, browser features, and cookies. They do not fix vulnerable code by themselves, but they can reduce the impact of common web security mistakes.
Use this page during website review, launch preparation, and periodic security hardening. It is a manual checklist, not an online scanner. Review headers in your own website, staging system, or authorized environment.
| Header | What it helps with | Beginner check | Related risk |
|---|---|---|---|
| Content-Security-Policy | Limits where scripts, styles, frames, and other resources can load from. | Start with a report-only policy before enforcing strict rules. | XSS, script injection |
| Strict-Transport-Security | Tells browsers to use HTTPS for future visits. | Use only after HTTPS works correctly across the site and subdomains. | Downgrade and network interception risk |
| X-Content-Type-Options | Reduces MIME-type sniffing surprises. | Use nosniff where supported. | Unexpected script or file handling |
| X-Frame-Options or CSP frame-ancestors | Controls whether other pages can frame your site. | Prefer CSP frame-ancestors for modern policies. | Clickjacking |
| Referrer-Policy | Controls how much URL/referrer data is sent to other sites. | Choose a policy that balances analytics and privacy. | Information leakage |
| Permissions-Policy | Restricts browser features such as camera, microphone, and geolocation. | Disable features your site does not need. | Excess browser capability exposure |
| Set-Cookie flags | Protects cookies with Secure, HttpOnly, and SameSite attributes. | Apply flags to session and sensitive cookies. | Session theft and cross-site abuse |
Why it matters:A CSP is easier to maintain when you know what the site actually loads.
Safe action:List trusted script, style, image, frame, and connection sources before enforcing a policy.
Why it matters:Inline script allowances weaken CSP protections.
Safe action:Prefer nonces, hashes, or external scripts controlled by the site.
Why it matters:Strict CSP can break functionality if deployed blindly.
Safe action:Test reports, fix expected violations, then enforce gradually.
frame-ancestors or X-Frame-Options to reduce unwanted framing.