]> cat aescling's git repositories - mastodon.git/commitdiff
Fix connect-src policy for Tesseract
authorThibaut Girka <thib@sitedethib.com>
Mon, 19 Aug 2019 20:02:35 +0000 (22:02 +0200)
committerThibaut Girka <thib@sitedethib.com>
Mon, 19 Aug 2019 20:02:35 +0000 (22:02 +0200)
config/initializers/content_security_policy.rb

index c8396c773434f4a1ceef2cf3ea7cb8aa30456569..810aa2880d2bc6d963c32f0fc2f9d95cf0e83ce9 100644 (file)
@@ -36,7 +36,7 @@ if Rails.env.production?
     p.media_src       :self, :data, *data_hosts
     p.frame_src       :self, :https
     p.worker_src      :self, :blob, assets_host
-    p.connect_src     :self, :blob, Rails.configuration.x.streaming_api_base_url, *data_hosts
+    p.connect_src     :self, :blob, :data, Rails.configuration.x.streaming_api_base_url, *data_hosts
     p.manifest_src    :self, assets_host
   end
 end