Sha256: 5cb853dc64a6646231e87932698cd49736fab3ff6497ed21eb0cc1d2e6bee787

Contents?: true

Size: 1.38 KB

Versions: 158

Compression:

Stored size: 1.38 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
#   # If you are using webpack-dev-server then specify webpack-dev-server host
#   policy.connect_src :self, :https, "http://localhost:3035", "ws://localhost:3035" if Rails.env.development?

#   # Specify URI for violation reports
#   # policy.report_uri "/csp-violation-report-endpoint"
# end

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

# Set the nonce only to specific directives
# Rails.application.config.content_security_policy_nonce_directives = %w(script-src)

# 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

158 entries across 156 versions & 35 rubygems

Version Path
raygun4ruby-4.0.2 spec/rails_applications/6.1.4/config/initializers/content_security_policy.rb
boring_generators-0.15.0 tmp/templates/app_template/config/initializers/content_security_policy.rb
tessa-6.1.3 spec/dummy/config/initializers/content_security_policy.rb
boring_generators-0.14.0 tmp/templates/app_template/config/initializers/content_security_policy.rb
raygun4ruby-4.0.1 spec/rails_applications/6.1.4/config/initializers/content_security_policy.rb
tessa-6.1.2 spec/dummy/config/initializers/content_security_policy.rb
raygun4ruby-4.0.0.pre spec/rails_applications/6.1.4/config/initializers/content_security_policy.rb
boring_generators-0.13.0 tmp/templates/app_template/config/initializers/content_security_policy.rb
decidim-file_authorization_handler-0.27.1.7 spec/decidim_dummy_app/config/initializers/content_security_policy.rb
tessa-6.1.1 spec/dummy/config/initializers/content_security_policy.rb
amazon-chime-sdk-rails-2.0.0 spec/rails_app/config/initializers/content_security_policy.rb
tessa-6.1.0 spec/dummy/config/initializers/content_security_policy.rb
nulogy_message_bus_producer-5.0.8 spec/dummy/config/initializers/content_security_policy.rb
tessa-6.0.3 spec/dummy/config/initializers/content_security_policy.rb
nulogy_message_bus_producer-5.0.7 spec/dummy/config/initializers/content_security_policy.rb
wovnrb-3.11.1 docker/rails/TestSite/config/initializers/content_security_policy.rb
wovnrb-3.11.0 docker/rails/TestSite/config/initializers/content_security_policy.rb
wovnrb-3.10.3 docker/rails/TestSite/config/initializers/content_security_policy.rb
nulogy_message_bus_producer-5.0.6 spec/dummy/config/initializers/content_security_policy.rb
ruby-clock-2.0.1 example-rails-6-app/config/initializers/content_security_policy.rb