How does it work?
Select sources in the generator or paste a policy to flag risky directives.
Build and analyze Content Security Policies for common risky directives.
Start from a baseline, then adjust each directive. The policy string updates immediately.
Everything is computed in this browser and never sent to a server.default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; font-src 'self' data:; connect-src 'self' https:; frame-src 'self'; frame-ancestors 'self'; form-action 'self'; base-uri 'self'; object-src 'none'; upgrade-insecure-requests
Select sources in the generator or paste a policy to flag risky directives.
No. Output encoding, validation, reliable frameworks, and other controls are still needed.
Output is a configuration aid and does not prove a website is safe from XSS or other attacks.