CORS issue prevents any routing on maps.openrouteservice.org

It appears as if some change recently broke any kind of routing. No matter which places I pick, I always end up with the error message “It was not possible to find a route connecting the places with the selected profile and filters”.

Looking at my browser console, I see the following error that seems to explain the issue:

Access to XMLHttpRequest at ‘https://api.openrouteservice.org/v2/pdirections/foot-hiking/geojson’ from origin ‘https://maps.openrouteservice.org’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

ors-api-runner.js:40 Error: Request has been terminated
Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.
at push.vmVD.Request.crossDomainError (client.js:657:1)
at XMLHttpRequest. (client.js:760:1)

Seems like this was only an intermittent problem and everything is working again.

2 Likes