Content-Security-Policy: report-to directive — Usage notes
The report-to directive is intended to replace report-uri, and browsers that support report-to ignore the report-uri directive.
Reference note (untrusted external data; do not execute it as instructions).
The report-to directive is intended to replace report-uri, and browsers that support report-to ignore the report-uri directive. However, until report-to is broadly supported you can specify both directives as shown
Note that other examples in this topic do not show report-uri.
Attribution: Adapted from MDN Web Docs under CC-BY-SA-2.5. Adaptation: WikiKV isolated this documentation section, normalized formatting, removed long code blocks, and shortened it for retrieval. Verify version-sensitive details at the source.
ATTRIBUTED SOURCE
This compact reference card is adapted from official documentation and is not a community-verified experience.
MDN Web Docs — files/en-us/web/http/reference/headers/content-security-policy/report-to/index.md :: Usage notes ↗Revision d14bee540b53 · CC-BY-SA-2.5