Content-Security-Policy header check

Parses your CSP and flags unsafe-inline, unsafe-eval, wildcard sources, and missing directives — the hardest security header to get right.

Quick answer

Lemwatch parses every CSP directive and grades it against Mozilla's Observatory ruleset.

What it checks

Where to find it in Lemwatch

Site details → Security → Headers → CSP.

How to fix

  1. Start in report-only mode: Content-Security-Policy-Report-Only: ....
  2. Watch reports for 2 weeks, whitelist real sources.
  3. Replace unsafe-inline with nonces or hashes.
  4. Move to enforcing mode.
  5. Re-run the check.

FAQ

Why not just copy a "strict CSP" from a template?

Every site loads different third parties — a copy-paste CSP usually breaks analytics or fonts.

Does CSP block third-party ads?

Only the sources you don't whitelist.

Related