CentralCSP
Reporting APIHeaders

Reporting API headers, Reporting-Endpoints and Report-To

Declare reporting endpoints and route browser reports to them with Reporting-Endpoints and the legacy Report-To.

Last update:

These headers tell the browser where to send reports. You declare one or more named endpoints, then a policy references an endpoint by name to route its reports there. The modern header is Reporting-Endpoints; Report-To is the legacy form, kept mainly for Network Error Logging.

Reporting-Endpoints: default="https://<Endpoint-ID>.report.centralcsp.com"

Pages in this section

How a policy points at an endpoint

A header only declares the endpoints. A policy then references one by name, and each policy has its own syntax for doing so:

  • CSP uses the report-to directive: report-to csp-endpoint.
  • COOP, COEP, and Permissions-Policy use a report-to= parameter on their header, for example Cross-Origin-Opener-Policy: same-origin; report-to="coop-endpoint".
  • Integrity-Policy uses an endpoints=() directive.
  • The implicit report types (deprecation, intervention, crash) have no per-policy syntax; they go to the endpoint named default.

Whichever syntax a policy uses, the name has to match one declared by Reporting-Endpoints (or Report-To) on the same response, or the reports go nowhere. See Policies for each one.

Next steps

On this page