From: Tom Hughes Date: Mon, 19 Nov 2018 17:34:47 +0000 (+0000) Subject: Allow connect_src to match all sites in Potlatch X-Git-Tag: live~3369 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/15c96081a6068c23aa660e8f366571c523a33d92?ds=sidebyside Allow connect_src to match all sites in Potlatch It seems that Safari matches connections made from a flash application against connect_src while Firefox uses object_src instead. Fixes #2067 --- diff --git a/app/controllers/site_controller.rb b/app/controllers/site_controller.rb index 4b960e4e2..5833a1e04 100644 --- a/app/controllers/site_controller.rb +++ b/app/controllers/site_controller.rb @@ -70,6 +70,7 @@ class SiteController < ApplicationController if %w[potlatch potlatch2].include?(editor) append_content_security_policy_directives( + :connect_src => %w[*], :object_src => %w[*], :plugin_types => %w[application/x-shockwave-flash], :script_src => %w['unsafe-inline']