Interactive Builder 100% Browser-Local Zero Tracking

Interactive Content-Security-Policy (CSP) Header Generator

Compose a hardened CSP or Report-Only header, detect 'unsafe-inline'/'unsafe-eval' weaknesses in real time, and copy production-ready directives for Nginx or Cloudflare.

CSP Directive Builder

Generated CSP Header & Security Audit

Frequently Asked Questions

Why should I test with Content-Security-Policy-Report-Only first?

Report-Only logs violations without breaking production scripts or checkout widgets, letting you verify every third-party origin before enforcing.

What does 'strict-dynamic' do in script-src?

When paired with a cryptographic nonce or hash, 'strict-dynamic' allows trusted scripts to load child scripts dynamically while ignoring unsafe allowlists.

Why is object-src 'none' recommended in every CSP?

Setting `object-src 'none'` blocks legacy plugin execution (`<object>`, `<embed>`) that can bypass script restrictions.

Related Tools & HTTP Status Guides