Webtrax docs

Rules · Security (passive)

Content-Security-Policy missing

security.header.csp_missing · default severity MEDIUM · rule version 1

Why it matters

A CSP is the main defence that limits the damage of an injected script (XSS).

How to fix it

Add a Content-Security-Policy; start from a report-only policy built for your site, then enforce it.

Checking the fix

Run the check again (webtrax check <url>), or compare two runs with webtrax diff: a fixed finding moves to "Fixed". To see this guidance from the terminal, run webtrax explain security.header.csp_missing.