Website Security Headers Toolkit
Design and review a coordinated set of HTTP security and delivery headers without unsafe combinations.
- Best for
- Web developers and site owners hardening an application before or after launch.
- Expected outcome
- A reviewed header set with rollout notes, server snippets, and fewer contradictory directives.
Run the tools in this order
- 1Open tool
Limit cross-origin access
Choose allowed origins, methods, headers, and credential behavior for API responses.
- 2Open tool
Build a Content Security Policy
Start in report-only mode and make allowed resource sources explicit.
- 3Open tool
Restrict browser features
Control access to camera, microphone, geolocation, and other powerful features.
- 4Open tool
Set cache behavior
Separate public static assets from private or personalized responses.
- 5Open tool
Publish a security contact
Create an RFC 9116 file so researchers know how to report a vulnerability.
Checks before you finish
- Test headers in a staging environment before enforcing them in production.
- Never combine a wildcard CORS origin with credentialed requests.
- Confirm every CSP source is required; avoid broad wildcards when possible.
- Recheck caching on authenticated and user-specific responses.