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:
Richard Fairhurst 2014-03-08 14:03:08 +00:00
parent a997690897
commit 2f0794738c
3 changed files with 5 additions and 2 deletions

View file

@ -24,7 +24,7 @@ OSRMEngine.prototype.createConfig = function() {
if (this._hints[pair]) url+= "&hint="+this._hints[pair];
}
if (isFinal) url+="&instructions=true";
this.requestJSONP(url+"&jsonp=");
this.requestCORS(url);
},
gotRoute: function(router,data) {
if (data.status==207) {