perliedman / leaflet-routing-machine

Control for routing in Leaflet
https://www.liedman.net/leaflet-routing-machine/
Other
1.06k stars 347 forks source link

Leaflet Routing Machine not workin #631

Closed IgnacioMS22 closed 3 years ago

IgnacioMS22 commented 3 years ago

I was using the leaflet routing machine API and now this message appears when I try to use their functions:

Access to XMLHttpRequest at 'https://router.project-osrm.org/route/v1/driving/-85.585825,10.259279;-83.033133,9.992395?overview=false&alternatives=true&steps=true&hints=;' from origin 'https://myApplication.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

perliedman commented 3 years ago

This is the OSRM demo server responding with some error. Leaflet Routing Machine has no control over the demo server, and it's known to be a bit unstable, so nothing to do on our part.