|
|
@ -46,3 +46,8 @@ end
|
|
|
|
# For further information see the following documentation:
|
|
|
|
# For further information see the following documentation:
|
|
|
|
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
|
|
|
|
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
|
|
|
|
# Rails.application.config.content_security_policy_report_only = true
|
|
|
|
# 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
|
|
|
|