Use jsonp for MapQuest as CORS doesn't seem to be working
authorTom Hughes <tom@compton.nu>
Mon, 28 Sep 2015 13:47:32 +0000 (14:47 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 28 Sep 2015 13:47:32 +0000 (14:47 +0100)
app/assets/javascripts/index/directions/mapquest.js

index 2210664888e94b8062a9fe280322c9123f47754f..24be65de770024bfce445eef2d5486f33f44b527 100644 (file)
@@ -48,7 +48,7 @@ function MapQuestEngine(id, routeType) {
           generalize: 0,
           unit: "k"
         },
-        dataType: "json",
+        dataType: "jsonp",
         success: function (data) {
           if (data.info.statuscode !== 0)
             return callback(true);