Change img-src
and media-src
CSP directives to not include https:
(#28025)
This commit is contained in:
parent
bb0efe16e6
commit
85662a5a57
4 changed files with 17 additions and 17 deletions
|
@ -9,8 +9,8 @@ class ContentSecurityPolicy
|
|||
url_from_configured_asset_host || url_from_base_host
|
||||
end
|
||||
|
||||
def media_host
|
||||
cdn_host_value || assets_host
|
||||
def media_hosts
|
||||
[assets_host, cdn_host_value].compact
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue