|
4 | 4 | # For further information see the following documentation
|
5 | 5 | # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
|
6 | 6 |
|
7 |
| -Rails.application.config.content_security_policy do |policy| |
8 |
| - policy.default_src :self, :https |
9 |
| - policy.font_src :self, :https, :data |
10 |
| - policy.img_src :self, :https, :data |
11 |
| - policy.object_src :none |
12 |
| - policy.script_src :self, :https, :unsafe_inline |
13 |
| - policy.style_src :self, :https, :unsafe_inline |
| 7 | +# Rails.application.config.content_security_policy do |policy| |
| 8 | +# policy.default_src :self, :https |
| 9 | +# policy.font_src :self, :https, :data |
| 10 | +# policy.img_src :self, :https, :data |
| 11 | +# policy.object_src :none |
| 12 | +# policy.script_src :self, :https |
| 13 | +# policy.style_src :self, :https, :unsafe_inline |
14 | 14 |
|
15 |
| - # Specify URI for violation reports |
16 |
| - # policy.report_uri "/csp-violation-report-endpoint" |
17 |
| -end |
| 15 | +# # Specify URI for violation reports |
| 16 | +# # policy.report_uri "/csp-violation-report-endpoint" |
| 17 | +# end |
18 | 18 |
|
19 | 19 | # Report CSP violations to a specified URI
|
20 | 20 | # For further information see the following documentation:
|
|
0 commit comments