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
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue