Getting started
csp-report-to.com collects the Content-Security-Policy (CSP) violation reports that your visitors' browsers send, groups them, and shows you what your policy blocks. Setting it up takes about 5 minutes.
1. Create an account
Sign up with your email address and a password. The Free plan needs no credit card and never charges you.
2. Verify your email
We email you a 6-digit code right after you sign up. Enter it on the page that asks for it.
Reports aren't accepted until your email is verified. Until then, your endpoint quietly ignores everything it receives. Accounts that are never verified are deleted after 7 days.
3. Add a site
On the Sites page, enter a name for your site, such as myblog.dev, and press Add site. You land on the site's settings page, which shows:
- your site's endpoint, a URL like
https://csp-report-to.com/r/YOUR_SITE_KEY, whereYOUR_SITE_KEYis your site's own key - the two header lines to add, with your endpoint already filled in, and Copy buttons
Each site gets its own endpoint. The Free plan includes 1 site, and the paid plans include more: see Plans, quotas and retention.
4. Add the headers in report-only mode
Add these two HTTP response headers to your site, using the exact lines from your settings page:
Content-Security-Policy-Report-Only: default-src 'self'; report-uri https://csp-report-to.com/r/YOUR_SITE_KEY; report-to csp
Reporting-Endpoints: csp="https://csp-report-to.com/r/YOUR_SITE_KEY"
Content-Security-Policy-Report-Onlymeans browsers report violations but block nothing, so your site keeps working exactly as before.default-src 'self'is a strict starting policy that reports everything loaded from other hosts. Replace it with your own policy if you already have one, and keep thereport-uri …; report-to csppart at the end.default-src 'self'also reports every inline<script>and<style>block,style="…"attribute, event handler andeval(), on every page view. On a busy site that can use up the Free plan's 10,000 reports a month quickly. Start with the headers on a few pages, or watch the usage bar on the Sites page for the first day.Reporting-Endpointstells newer browsers wherereport-to cspshould send reports.
Setting up your CSP headers has copy-paste examples for Nginx, Apache, Caddy, PHP, Express, Next.js, Netlify and Vercel, a WordPress plugin, Magento 2, and explains why you need both report-uri and report-to.
5. Check your setup
On your site's settings page, under Check your setup:
- Enter the address of one of your pages and press Check my site. We load the page and check that its headers send reports to your endpoint. Each item shows ✓, a warning or ✗, with what to fix.
- Press Start live test and follow the steps: paste the line it gives you into your browser's console on a page of your site. The settings page shows when the report arrives, which proves the whole path works in a real browser. The test report isn't stored and doesn't count toward your quota.
Setting up your CSP headers explains both checks (under Check your setup), and how to test by hand.
If alerts are on (they are by default), the first real report also gets you a one-off "We're receiving reports for myblog.dev" email within a few minutes.
6. Wait for real reports
Visit a few pages of your site. If anything on them breaks your policy, the reports show up in your dashboard, usually within a minute. Browsers only send a report when something actually breaks the policy, so a page that follows it sends nothing.
Nothing showing up? Work through the checklist in Troubleshooting and FAQ.
Next steps
- Rolling out a new policy: turn the reports into a policy you can enforce.
- Dashboard, alerts and statuses: Mute, Resolve and alert emails.
- Plans, quotas and retention: what counts toward your quota.