instance method
report_uri
Ruby on Rails 7.1.6
Since v5.2.8.1Signature
report_uri(uri)
Enable the report-uri directive. Violation reports will be sent to the specified URI:
policy.report_uri "/csp-violation-report-endpoint"
Parameters
-
urireq
Source
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 234
def report_uri(uri)
@directives["report-uri"] = [uri]
end
Defined in actionpack/lib/action_dispatch/http/content_security_policy.rb line 234
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::ContentSecurityPolicy