Assemble and validate a CSP directive by directive, with presets and a copyable header and meta tag.
Presets
Populate the whole policy, then tweak.
Emits the -Report-Only header (no blocking).
Directives
Validation notes
style-src includes 'unsafe-inline'. Common for legacy CSS, but weaker — consider hashes/nonces for styles.
HTTP response header
Content-Security-PolicyHTML meta tag
Note: the meta-tag delivery ignores frame-ancestors, report-uri and Report-Only mode. Send those via the HTTP header instead.