You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
837 B

  1. # Define an application-wide content security policy
  2. # For further information see the following documentation
  3. # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
  4. # Rails.application.config.content_security_policy do |p|
  5. # p.default_src :self, :https
  6. # p.font_src :self, :https, :data
  7. # p.img_src :self, :https, :data
  8. # p.object_src :none
  9. # p.script_src :self, :https
  10. # p.style_src :self, :https, :unsafe_inline
  11. #
  12. # # Specify URI for violation reports
  13. # # p.report_uri "/csp-violation-report-endpoint"
  14. # end
  15. # Report CSP violations to a specified URI
  16. # For further information see the following documentation:
  17. # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
  18. # Rails.application.config.content_security_policy_report_only = true