Skip to content

Quick Start

Get CSP reporting working in 5 minutes.

  1. Sign up at app.headerhawk.com
  2. Create a new site for your domain
  3. Go to Settings → Sites, open the site’s row menu, and choose View Setup. Copy the Report URI — it is the full endpoint, already carrying your site’s 8-character ingest code:
https://ingest.headerhawk.com/csp/YOUR_INGEST_CODE

Paste the whole URL. The ingest code is the only site-specific part, and it is the value every example below writes as YOUR_INGEST_CODE.

Choose your platform:

We recommend starting with Content-Security-Policy-Report-Only to collect violations without breaking your site:

Content-Security-Policy-Report-Only: default-src 'self'; report-uri https://ingest.headerhawk.com/csp/YOUR_INGEST_CODE

This header tells browsers to:

  1. Check if resources violate the policy
  2. Report violations to HeaderHawk
  3. Not block anything (report-only mode)

Visit your HeaderHawk dashboard to see incoming CSP violations.

You’ll see:

  • Blocked resources - URLs that would be blocked by your policy
  • Violated directives - Which CSP rules were violated
  • Document URLs - Pages where violations occurred
  • Timestamps - When violations happened