snag.page

bbc.co.uk · Headers

No Content-Security-Policy

Medium Checked 16 Nov 2026, 20:09 UTC ·

Nothing limits where scripts can load from, so a script injected into a page would run.

  1. Send the policy below as Content-Security-Policy-Report-Only, and see what it would block.
  2. Add the sources your pages need to it.
  3. Then send it as Content-Security-Policy.
Header
Content-Security-Policy-Report-Only: default-src 'self'; object-src 'none'; base-uri 'none'; frame-ancestors 'self'

What it checks

The Content-Security-Policy header, and whether it limits scripts.

Why it matters

A CSP stops a script injected into a page from running: the main defence against cross-site scripting.

Everything to fix on bbc.co.uk · About this check