Mercurial > rsstweet
comparison config/initializers/content_security_policy.rb @ 185:f67f3ad50270
Update to latest rails and gems
author | nanaya <me@nanaya.pro> |
---|---|
date | Sun, 14 Jul 2019 15:38:04 +0900 |
parents | |
children | 2335107f35d0 |
comparison
equal
deleted
inserted
replaced
184:a35c2733552f | 185:f67f3ad50270 |
---|---|
1 # Be sure to restart your server when you modify this file. | |
2 | |
3 # Define an application-wide content security policy | |
4 # For further information see the following documentation | |
5 # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy | |
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 | |
13 # policy.style_src :self, :https | |
14 | |
15 # # Specify URI for violation reports | |
16 # # policy.report_uri "/csp-violation-report-endpoint" | |
17 # end | |
18 | |
19 # If you are using UJS then enable automatic nonce generation | |
20 # Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) } | |
21 | |
22 # Report CSP violations to a specified URI | |
23 # For further information see the following documentation: | |
24 # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only | |
25 # Rails.application.config.content_security_policy_report_only = true |