]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/application_controller.rb
Improve the content security policy
[rails.git] / app / controllers / application_controller.rb
index 26bb92f9af78b8685f8fa9356428a5b5a269595b..ff3f67efd975d46d76312a35f97fcf44c7899df9 100644 (file)
@@ -410,7 +410,8 @@ class ApplicationController < ActionController::Base
   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)
+      :script_src => %w(graphhopper.com open.mapquestapi.com),
+      :img_src => %w(developer.mapquest.com)
     )
 
     request.xhr? ? "xhr" : "map"