Beginner
headers
csp
Security headers configuration
Harden HTTP responses. Tuned for ChatGPT.
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. If anything is unclear, state your assumptions before answering.
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.
