Skip to content
Beginner
headers
csp

Security headers configuration

Harden HTTP responses. Tuned for Any AI tool.

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.

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.

Related prompts