Skip to content
Snippets Groups Projects
Unverified Commit dea5db0e authored by ThibG's avatar ThibG Committed by GitHub
Browse files

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

parent ff72c047
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -38,4 +38,4 @@ databases:
# aws_secret_access_key: ...
# aws_region: us-east-1
override_csp: true
override_csp: false
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment