Content-Security-Policy (CSP) Builder & Auditor
Web SecurityAudit existing CSP headers for XSS bypasses, merge service presets, and export ready-to-deploy configs for Nginx, Cloudflare Pages, Vercel, and HTML.
Security Audit Findings
0 warningsAbout This Tool
A misconfigured Content-Security-Policy header can either break legitimate third-party scripts in production or give a false sense of security while leaving trivial XSS bypasses open via unsafe-inline, unsafe-eval, or missing base-uri restrictions.
This tool parses raw CSP strings, scores the policy against web security best practices, lets you merge common service allowlists with one click, and formats the output for Nginx, Cloudflare Pages _headers, vercel.json, or HTML meta tags.
Key Features
- Live XSS Bypass Auditor: Flags unsafe-inline, unsafe-eval, wildcard origins, permissive schemes (data:, https:), and missing object-src or base-uri directives.
- One-Click Service Presets: Merge exact required origins for Google Fonts, Stripe.js, and Cloudflare Turnstile without duplicating tokens.
- Spec-Compliant HTML Meta Export: Automatically strips directives that browsers reject inside HTML <meta> tags (frame-ancestors, report-uri, sandbox).