about summary refs log tree commit diff
path: root/config/initializers/content_security_policy.rb
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-08-19 22:02:35 +0200
committerThibaut Girka <thib@sitedethib.com>2019-08-19 22:02:35 +0200
commit9e17f9e95a447712f5907e85cd641d9213d97763 (patch)
treec40444466173e87d5b4a9281d4cabf9d847e07e4 /config/initializers/content_security_policy.rb
parentf00a0f35eeba7911f9db9b791a0b580bb43588e7 (diff)
Fix connect-src policy for Tesseract
Diffstat (limited to 'config/initializers/content_security_policy.rb')
-rw-r--r--config/initializers/content_security_policy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/content_security_policy.rb b/config/initializers/content_security_policy.rb
index c8396c773..810aa2880 100644
--- a/config/initializers/content_security_policy.rb
+++ b/config/initializers/content_security_policy.rb
@@ -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