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.
| Path | Use it for |
|---|---|
/r | The Reporting API: CSP, deprecations, interventions, crashes, COOP, COEP, Permissions Policy, Document Policy, Integrity Policy |
/csp | report-uri on an enforced policy |
/csp/ro | report-uri on a report-only policy |
/csp/watch | A policy that reports every source, for the watch inventory. These never open issues. |
/nel | Network Error Logging |
/tls | SMTP TLS reports over HTTPS |
/ct, /staple, /hpkp, /xss | Older report types that some clients still send |
Introducing a CSP
- Send
Content-Security-Policy-Report-Onlywithdefault-src 'self'for a week or two. - In the policy wizard, allow the sources you recognise.
- Run the generated policy as report-only and fix what is left.
- 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.