Sha256: 4a57258247b0a16cf04eefccaafb2db2c99f05d2a34c895494de8e9f60f5c2dc

Contents?: true

Size: 1.17 KB

Versions: 5

Compression:

Stored size: 1.17 KB

Contents

# Be sure to restart your server when you modify this file.

# Define an application-wide content security policy
# For further information see the following documentation
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy

Rails.application.config.content_security_policy do |policy|
#   policy.default_src :self, :https
#   policy.font_src    :self, :https, :data
#   policy.img_src     :self, :https, :data
#   policy.object_src  :none
#   policy.script_src  :self, :https
#   policy.style_src   :self, :https

#   # Specify URI for violation reports
#   # policy.report_uri "/csp-violation-report-endpoint"
  policy.connect_src :self, :https, "http://localhost:3035", "ws://localhost:3035" if Rails.env.development?
end

# If you are using UJS then enable automatic nonce generation
# Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) }

# Report CSP violations to a specified URI
# For further information see the following documentation:
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
# Rails.application.config.content_security_policy_report_only = true

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
adminos-1.0.0.pre.rc.5 lib/generators/templates/install/auto/config/initializers/content_security_policy.rb
adminos-1.0.0.pre.rc.4 lib/generators/templates/install/auto/config/initializers/content_security_policy.rb
adminos-1.0.0.pre.rc.3 lib/generators/templates/install/auto/config/initializers/content_security_policy.rb
adminos-1.0.0.pre.rc.2 lib/generators/templates/install/auto/config/initializers/content_security_policy.rb
adminos-1.0.0.pre.rc.1 lib/generators/templates/install/auto/config/initializers/content_security_policy.rb