SupportENFR

Content-Security-Policy

Web & HTTP

Paste a CSP. Directives are split here, and a few common weak spots are flagged. Nothing is uploaded.

Try
97 B1 line
Ln 1, Col 1Valid CSP
default-src'self'
script-src'self'
object-src'none'
base-uri'self'
frame-ancestors'none'
No warning for this policy.

Did you know? The header exists to cut off a class of cross-site scripting. 'unsafe-inline' in script-src puts a large part of that protection back.

Learn more about Content-Security-Policy

What is this tool?