]> cat aescling's git repositories - mastodon.git/commitdiff
Tighten CSP a bit
authorThibaut Girka <thib@sitedethib.com>
Sat, 10 Nov 2018 17:53:23 +0000 (18:53 +0100)
committerThibG <thib@sitedethib.com>
Mon, 12 Nov 2018 14:43:02 +0000 (15:43 +0100)
config/initializers/content_security_policy.rb

index 76236aa218b2fd05077ef3a970431edff8e0dc4d..1617ad1c1191b1606e2d1822cad77eaf863e5e96 100644 (file)
@@ -21,13 +21,14 @@ if Rails.env.production?
     p.frame_ancestors :none
     p.script_src      :self, assets_host
     p.font_src        :self, assets_host
-    p.img_src         :self, :https, :data, :blob
+    p.img_src         :self, :data, :blob, *data_hosts
     p.style_src       :self, :unsafe_inline, assets_host
     p.media_src       :self, :data, *data_hosts
     p.frame_src       :self, :https
     p.worker_src      :self, assets_host
     p.connect_src     :self, :blob, Rails.configuration.x.streaming_api_base_url, *data_hosts
-    p.manifest_src    :self, :https
+    p.manifest_src    :self, assets_host
+    p.form_action     :self
   end
 end
 
This page took 0.027216 seconds and 3 git commands to generate.