X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8db05481193bfb105c76cda40ea0617b5f10545e..40a8e5caf5e5c69d175a90b81528d81d1e4e0964:/app/controllers/application_controller.rb diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 8eb5f2409..10901fdd5 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -407,6 +407,11 @@ class ApplicationController < ActionController::Base end def map_layout + append_content_security_policy_directives( + :connect_src => %w(nominatim.openstreetmap.org overpass-api.de router.project-osrm.org valhalla.mapzen.com), + :script_src => %w(graphhopper.com open.mapquestapi.com) + ) + request.xhr? ? "xhr" : "map" end