Skip to content

CSP Report-uri deprecated, replaced by report-to #512

Description

@martindaehn23

Adding a new CSP directive

Report-uri seems to be depricated: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/report-uri
Instead we want to use both, report-uri and report-to, to be future proof and backward compatible.

  • Chrome
  • Edge
  • Opera
  • What does it do?
    Used to substitute report-uri.

  • What are the valid values for the directive?
    Content-Security-Policy: report-to ;

Activity

  1. tmaier commented on Oct 22, 2025

    @tmaier
    Contributor

    For additional context: The new report-to directive requires the Reporting-Endpoints HTTP header to define reporting endpoints (see W3C Reporting API spec and MDN docs).

    Rails has an open PR (#52367) for Reporting API support, likely targeting Rails 8.1.

    Both report-uri (deprecated) and report-to can coexist for backward compatibility during the transition period.

  2. added a commit that references this issue on Jan 8, 2026
  3. denn-os commented on Mar 30, 2026

    @denn-os
    Contributor

    This has been addressed in v7.2.0
    #566

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions