Add CORS for engines that support it
(Do we need a fix for IE8/9? - https://github.com/MoonScript/jQuery-ajaxTransport-XDomainRequest - https://github.com/jaubourg/ajaxHooks/blob/master/src/xdr.js )
This commit is contained in:
parent
a997690897
commit
2f0794738c
3 changed files with 5 additions and 2 deletions
|
@ -48,7 +48,7 @@ MapQuestEngine.prototype.createConfig = function() {
|
|||
//url+="&locale=" + I18n.currentLocale(); //Doesn't actually work. MapQuest requires full locale e.g. "de_DE", but I18n only provides language, e.g. "de"
|
||||
url+="&manMaps=false";
|
||||
url+="&shapeFormat=raw&generalize=0";
|
||||
this.requestJSONP(url+"&callback=");
|
||||
this.requestCORS(url);
|
||||
},
|
||||
gotRoute: function(router,data) {
|
||||
// *** what if no route?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue