1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 # Be sure to restart your server when you modify this file.
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
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
19 # # Specify URI for violation reports
20 # # policy.report_uri "/csp-violation-report-endpoint"
23 # If you are using UJS then enable automatic nonce generation
24 # Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) }
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