Beginner
headers
csp
Security headers configuration
Harden HTTP responses. Tuned for Claude.
Prompt
Generate recommended security headers for a [FRAMEWORK/SERVER] app serving [APP TYPE]: CSP, HSTS, X-Content-Type-Options, Referrer-Policy, Permissions-Policy. Explain each and note what might break. Ask clarifying questions first if anything important is missing.
Replace the [HIGHLIGHTED] parts with your own details.
Example output
A config block plus a table explaining each header.
Tips
- Roll out CSP in report-only mode first.
