FREE TOOL
CSP policy helper
Prepare a Content-Security-Policy and review common warnings.
Generated policy
Content-Security-Policy: default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data:; connect-src 'self'; font-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'self'; upgrade-insecure-requestsScheme-only sources (https:, data:) are overly broad.
Test Content-Security-Policy-Report-Only first. The generated policy may break pages and does not guarantee protection.
Scope and limitations. Generates text only. It neither tests your pages nor guarantees protection.