about summary refs log tree commit diff
path: root/config/initializers
diff options
context:
space:
mode:
authorReverite <github@reverite.sh>2019-11-06 17:56:52 -0500
committerReverite <github@reverite.sh>2019-11-06 17:56:52 -0500
commit48635bf45f6402c8f82d4cb66fa42e3e5e8f30c2 (patch)
tree986fc861f03509167801de14a613bfb4711b6974 /config/initializers
parent1150110d50d9060fc325825c6770e7ef773ebcff (diff)
include jortage in csp
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/content_security_policy.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/initializers/content_security_policy.rb b/config/initializers/content_security_policy.rb
index 810aa2880..c07af3ea8 100644
--- a/config/initializers/content_security_policy.rb
+++ b/config/initializers/content_security_policy.rb
@@ -31,9 +31,9 @@ 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, *data_hosts
+    p.img_src         :self, :data, :blob, *data_hosts, "pool.jortage.com", "blob.jortage.com", "s3-us-east-2.amazonaws.com"
     p.style_src       :self, :unsafe_inline, assets_host
-    p.media_src       :self, :data, *data_hosts
+    p.media_src       :self, :data, *data_hosts, "pool.jortage.com", "blob.jortage.com", "s3-us-east-2.amazonaws.com"
     p.frame_src       :self, :https
     p.worker_src      :self, :blob, assets_host
     p.connect_src     :self, :blob, :data, Rails.configuration.x.streaming_api_base_url, *data_hosts