class ActionDispatch::ContentSecurityPolicy
def report_uri(uri)
policy.report_uri "/csp-violation-report-endpoint"
directive. Violation reports will be sent to the specified URI:
Enable the {report-uri}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/report-uri]
def report_uri(uri) @directives["report-uri"] = [uri] end