Skip to content

Commit

Permalink
Collect samples for CSP reports
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-laa committed Jul 13, 2023
1 parent 89bb959 commit 51b8d26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/initializers/content_security_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
policy.font_src :self, :https, :data
policy.img_src :self, :https, :data
policy.object_src :none
policy.script_src :self, :https
policy.style_src :self, :https
policy.script_src :self, :https, :report_sample
policy.style_src :self, :https, :report_sample
# Specify URI for violation reports
policy.report_uri(ENV["CSP_REPORT_ENDPOINT"]) if ENV["CSP_REPORT_ENDPOINT"].present?
end
Expand Down

0 comments on commit 51b8d26

Please sign in to comment.