Check a Content-Security-Policy for syntax, unsafe sources, and contradictory directives.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
CSP text is tokenized into directives and source expressions, then checked for syntax, deprecated tokens, contradictory sources, and unsafe allowances. The validator reports policy intent without loading a protected page.
default-src 'self'; script-src 'self' 'unsafe-inline'; img-src *
CSP is valid but has 3 warning(s) Directives found: 3 Warnings: - "script-src" allows 'unsafe-inline' - XSS risk - "img-src" uses wildcard (*) - allows any source - Missing 'frame-ancestors' - clickjacking protection not set
Deployments, report-only CI, and security reviews validate CSP.