Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / services / api / config / initializers / content_security_policy.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 # Be sure to restart your server when you modify this file.
6
7 # Define an application-wide content security policy
8 # For further information see the following documentation
9 # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
10
11 # Rails.application.config.content_security_policy do |policy|
12 #   policy.default_src :self, :https
13 #   policy.font_src    :self, :https, :data
14 #   policy.img_src     :self, :https, :data
15 #   policy.object_src  :none
16 #   policy.script_src  :self, :https
17 #   policy.style_src   :self, :https
18
19 #   # Specify URI for violation reports
20 #   # policy.report_uri "/csp-violation-report-endpoint"
21 # end
22
23 # If you are using UJS then enable automatic nonce generation
24 # Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) }
25
26 # Report CSP violations to a specified URI
27 # For further information see the following documentation:
28 # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
29 # Rails.application.config.content_security_policy_report_only = true