Skip to content

Commit

Permalink
Re-adds blob: to script-src.
Browse files Browse the repository at this point in the history
  • Loading branch information
ashfurrow committed Oct 20, 2019
1 parent 1bd4d00 commit e6d0ec7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/initializers/content_security_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ def host_to_url(str)
webpacker_urls = %w(ws http).map { |protocol| "#{protocol}#{Webpacker.dev_server.https? ? 's' : ''}://#{Webpacker.dev_server.host_with_port}" }

p.connect_src :self, :data, :blob, assets_host, media_host, Rails.configuration.x.streaming_api_base_url, *webpacker_urls
p.script_src :self, :unsafe_inline, :unsafe_eval, assets_host
p.script_src :self, :blob, :unsafe_inline, :unsafe_eval, assets_host
p.worker_src :self, :blob, assets_host
else
p.connect_src :self, :data, :blob, assets_host, media_host, Rails.configuration.x.streaming_api_base_url
p.script_src :self, assets_host
p.script_src :self, :blob, assets_host
p.worker_src :self, :blob, assets_host
end
end
Expand Down

0 comments on commit e6d0ec7

Please sign in to comment.