From 9e17f9e95a447712f5907e85cd641d9213d97763 Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Mon, 19 Aug 2019 22:02:35 +0200 Subject: [PATCH] Fix connect-src policy for Tesseract --- config/initializers/content_security_policy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/content_security_policy.rb b/config/initializers/content_security_policy.rb index c8396c77343..810aa2880d2 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