File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
railties/lib/rails/generators/rails/app/templates/config/initializers Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Be sure to restart your server when you modify this file.
2
2
3
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
4
+ # See the Securing Rails Applications Guide for more information :
5
+ # https://guides.rubyonrails .org/security.html#content-security-policy-header
6
6
7
7
# Rails.application.configure do
8
8
# config.content_security_policy do |policy|
20
20
# config.content_security_policy_nonce_generator = ->(request) { request.session.id.to_s }
21
21
# config.content_security_policy_nonce_directives = %w(script-src)
22
22
#
23
- # # Report CSP violations to a specified URI. See:
24
- # # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
23
+ # # Report violations without enforcing the policy.
25
24
# # config.content_security_policy_report_only = true
26
25
# end
You can’t perform that action at this time.
0 commit comments