mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix PgHero Content-Security-Policy when CDN_HOST is used (#13595)
This commit is contained in:
parent
ff72c0472f
commit
dea5db0e25
@ -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
|
||||||
|
@ -38,4 +38,4 @@ databases:
|
|||||||
# aws_secret_access_key: ...
|
# aws_secret_access_key: ...
|
||||||
# aws_region: us-east-1
|
# aws_region: us-east-1
|
||||||
|
|
||||||
override_csp: true
|
override_csp: false
|
||||||
|
Loading…
Reference in New Issue
Block a user