diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-11-29 14:14:02 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-11-29 14:14:02 -0600 |
commit | 08ff7a4850a9c0669c1caec767c5042aaf6c17b3 (patch) | |
tree | 859d0a4f1b4041e1ec2e3e06f4f54b0a21d7ea9c /config | |
parent | 91cac4c890e1b9575357114b03ce0bb0e43cf5b7 (diff) |
remove img tag proxy from csp cause a: we don't use that anymore & b: it's breaking stuff
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/content_security_policy.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/config/initializers/content_security_policy.rb b/config/initializers/content_security_policy.rb index 9bbbbbb78..b6a18d1ed 100644 --- a/config/initializers/content_security_policy.rb +++ b/config/initializers/content_security_policy.rb @@ -16,7 +16,6 @@ if Rails.env.production? attachments_host = nil end - img_proxy_host = "https://#{ENV.fetch('IMG_PROXY_DOMAIN', assets_host)}" data_hosts << attachments_host unless attachments_host.nil? if ENV['PAPERCLIP_ROOT_URL'] @@ -32,7 +31,7 @@ if Rails.env.production? p.frame_ancestors :none p.script_src :self, assets_host p.font_src :self, assets_host - p.img_src :self, :data, :blob, img_proxy_host, *data_hosts, "pool.jortage.com", "blob.jortage.com" + p.img_src :self, :data, :blob, *data_hosts, "pool.jortage.com", "blob.jortage.com" p.style_src :self, :unsafe_inline, assets_host p.media_src :self, :data, *data_hosts, "pool.jortage.com", "blob.jortage.com" p.frame_src :self, :https |