Matan · Security · Headers

Content-Security-Policy (Security)

CSP is a hardening header. A missing header is not proof that a script was injected.

Pass condition in our engine: A Content-Security-Policy header is present.

This Security check is part of SEO-GEO scoring 3.0.0, last updated 2026-10-25. The number on this page is the developer scoring version. It is not an announcement that public release 3.0.0 is live. A free report shows the same pass condition for the pages it fetched.

1. Problem description

A missing Content-Security-Policy is a hardening gap. It is not proof that a script was injected, and it is not a confirmed XSS finding. A first policy can be Report-Only; production should send Content-Security-Policy. We do not execute the page — we only read the header.

2. Most common causes

  • SPA hosts that never added a header.
  • Fear of breaking inline scripts.
  • CSP only on a marketing subdomain.

Test this check

We fetch only this URL (plus robots.txt / llms.txt at the domain root when the check needs them). We do not crawl the rest of the site like a full report.

3. How to fix it

  1. Start with default-src 'self'; object-src 'none'; base-uri 'self'.
  2. Move inline scripts to files or use nonces/hashes.
  3. Tighten img/font/connect-src as you learn the app’s sources.

Scoring rules for the scan of fetched pages are documented in methodology. Want every category at once? Generate a free report.

Get your free website audit

Enter a public URL. The scan reads up to 300 pages and returns an HTML report with scores for measured pillars and a recommendation for each finding. No sign-up required.