method

report_uri

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ContentSecurityPolicy
report_uri(uri) public

Enable the report-uri directive. Violation reports will be sent to the specified URI:

policy.report_uri "/csp-violation-report-endpoint"
Show source
Register or log in to add new notes.