Content Security Policy Editor

Build a CSP from sources, then choose the directives each one applies to.

Policy

Paste a header or a header value. Matrix edits replace this text with a normalized policy.

Sources

Keywords such as self are quoted for you. Schemes and hosts stay bare.

Directive columns

Matrix

A filled chip shows that column. Amber means a checked source in the column is risky. Red means the name is not a recognized directive. Checking 'none' clears the other sources in that column.