Docs
Sign in, enter your domain, and the setup page gives you headers with your own endpoint. This page explains what they do.
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 |
A safe way to turn on CSP
- Send
Content-Security-Policy-Report-Onlywithdefault-src 'self'for a week or two. - In the policy wizard, allow what you recognise.
- Run the generated policy as report-only and fix what is left.
- Rename the header to
Content-Security-Policy. Keep a stricter report-only policy beside 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 Fencepost-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 fp_…" https://fencepost.alexbrazier.co.uk/api/v1/sites curl -H "Authorization: Bearer fp_…" https://fencepost.alexbrazier.co.uk/api/v1/sites/SITE_ID/issues?limit=100
Also available: /sources and /policies. Read only, 60 requests a minute per key in each location.