See what your Content Security Policy is blocking

CSP Inbox collects the security reports browsers send about your site, merges the duplicates, and explains what each one means and what to change.

Free for one site, with 10,000 reports a month. No card needed.

{"csp-report": {
  "document-uri": "https://shop.example/checkout",
  "effective-directive": "script-src-elem",
  "blocked-uri": "https://googie-analytics.com/ga.js",
  "disposition": "report",
  "line-number": 212 }}
Suspicious46 reports since Saturday

This host imitates google-analytics.com

Your policy only reported it, so it probably ran.

  1. Check /checkout for an unexpected script tag.
  2. Review recent changes to your tag manager and dependencies.

Thousands of reports, a short list of issues

One missing host can produce a report on every page view. Identical reports are counted together, so you see each problem once, with the pages and browsers it affects.

What you can do with it

chrome-extensionDropped: extension
kaspersky-labs.comDropped: antivirus
api.segment.ioKept: third party

Filter out the noise

Reports caused by extensions, antivirus and translation tools are dropped, along with reports about domains that are not yours. They do not count towards your limit.

js.stripe.comAllowDeny
googie-analytics.comAllowDeny
script-src 'self' https://js.stripe.com

Build a policy from real traffic

Allow or deny each source that browsers have reported, and see how many past reports the new policy would block. It never adds 'unsafe-inline' for you.

js.stripe.comCard paymentsApproved by Sam
cdn.segment.comContents changed yesterdayNeeds review

Keep track of third parties

Every script, connection and frame on your pages, with who approved it and why. Export the script inventory as evidence for PCI DSS 4.0.1 requirements 6.4.3 and 11.6.1.

Suspicious sources (1)[larkspur.example] googie-analytics.com blocked by script-src-elem
Security policy changed (1)[larkspur.example] New enforced policy seen

Get told when something changes

Email, Slack or a signed webhook for look-alike domains, new third parties, changed scripts, changed policies and sudden spikes.

How to get started

  1. Add two headers

    Enter your domain and copy the headers. Report-only mode does not block anything. There are versions for nginx, Apache, Express and Cloudflare.

    Reporting-Endpoints: default="https://YOUR-ID.cspinbox.com/r"
    Content-Security-Policy-Report-Only: default-src 'self';
      report-uri https://YOUR-ID.cspinbox.com/csp/ro; report-to default
  2. Review what comes in

    Reports usually start within minutes of someone visiting. Leave it running for a week or two so that you see every page and browser.

  3. Enforce your policy

    Allow what you recognise in the wizard and check the result in report-only mode. When it is quiet, rename the header to enforce it.

Reports it understands

  • Content Security Policy
  • CSP script hashes
  • Trusted Types
  • Integrity Policy
  • Permissions Policy
  • Document Policy
  • Network Error Logging
  • Deprecations
  • Interventions
  • Crashes
  • COOP and COEP
  • DMARC aggregate reports
  • SMTP TLS reports
  • Expect-CT and Expect-Staple
  • HPKP and XSS Auditor

New to Content Security Policy?

  • Check a policy

    Paste the one you have and see what is weak or missing. No account needed.

  • Add a CSP header

    Examples for nginx, Apache, Express, Next.js, Cloudflare and others.

  • Fix a CSP error

    What the messages in the browser console mean, and what to change.

Try it on one site for free

If you go over 10,000 reports in a month, new ones are paused until the next. You are never charged for going over.