Fix PgHero Content-Security-Policy when CDN_HOST is used (#13595)

lolsob-rspec
ThibG 2020-05-04 13:52:41 +02:00 committed by GitHub
parent 190768a28d
commit fe7b81ac6b
2 changed files with 6 additions and 1 deletions

View File

@ -46,3 +46,8 @@ end
# 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
PgHero::HomeController.content_security_policy do |p|
p.script_src :self, :unsafe_inline, assets_host
p.style_src :self, :unsafe_inline, assets_host
end

View File

@ -38,4 +38,4 @@ databases:
# aws_secret_access_key: ...
# aws_region: us-east-1
override_csp: true
override_csp: false