Docs

After you add a domain, the setup page shows the headers to use with your own endpoint. This page explains them. For help with CSP itself, see the guides.

Endpoints

Each site has its own host name, shown as https://YOUR-ID.… below.

PathUse it for
/rThe Reporting API: CSP, deprecations, interventions, crashes, COOP, COEP, Permissions Policy, Document Policy, Integrity Policy
/cspreport-uri on an enforced policy
/csp/roreport-uri on a report-only policy
/csp/watchA policy that reports every source, for the watch inventory. These never open issues.
/nelNetwork Error Logging
/tlsSMTP TLS reports over HTTPS
/ct, /staple, /hpkp, /xssOlder report types that some clients still send

Introducing a CSP

  1. Send Content-Security-Policy-Report-Only with default-src 'self' for a week or two.
  2. In the policy wizard, allow the sources you recognise.
  3. Run the generated policy as report-only and fix what is left.
  4. Rename the header to Content-Security-Policy. You can keep a stricter report-only policy alongside it.

Include both report-uri and report-to. Browsers that understand report-to ignore the other.

DMARC and SMTP TLS

Use the mailbox on your setup page in the rua tag of each DNS record. Only reports about domains listed in your site settings are kept.

Webhooks

Requests carry CSPInbox-Signature: t=TIME,v1=HMAC. Compute HMAC-SHA256 of TIME.BODY with your signing secret, compare in constant time, and reject old timestamps.

API

curl -H "Authorization: Bearer cspi_…" https://cspinbox.com/api/v1/sites
curl -H "Authorization: Bearer cspi_…" https://cspinbox.com/api/v1/sites/SITE_ID/issues?limit=100

Also available: /sources and /policies. Read only, 60 requests a minute per key in each location.