Commit 4efa4f2c authored by Rob Colbert's avatar Rob Colbert

also allow to embed

parent 5f19ac66
......@@ -5,12 +5,11 @@
base_host = Rails.configuration.x.web_domain
assets_host = Rails.configuration.action_controller.asset_host
assets_host ||= "http#{Rails.configuration.x.use_https ? 's' : ''}://#{base_host}"
frame_hosts = "https://*"
Rails.application.config.content_security_policy do |p|
p.base_uri :none
p.default_src :none
p.frame_ancestors :self, frame_hosts
p.frame_ancestors :self, "https://*", "https://*"
p.font_src :self, assets_host
p.img_src :self, :https, :data, :blob, assets_host
p.style_src :self, :unsafe_inline, assets_host
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment