Hi,
I try to use OSM routing, but no success. I have a valid access token from Mapbox, use "http://map.project-osrm.org" as Router Service, but I get the following error:
Access to XMLHttpRequest at 'https://router.project-osrm.org/route/v ... rue&hints=;' from origin 'https://tokrimini.gr' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Website is developed on a provider and I don't have access to setup my own OSMR server, or even use a proxy.
What can I do?
Thank you very much in advance...
OSMR routing blocked by CORS policy: No 'Access-Control-Allow-Origin'
-
- Phoca Newbie
- Posts: 3
- Joined: 19 Oct 2019, 18:11
-
- Phoca Newbie
- Posts: 3
- Joined: 19 Oct 2019, 18:11
Re: OSMR routing blocked by CORS policy: No 'Access-Control-Allow-Origin'
Hi,
Finally solved it by myself.
Mapbox is not needed. Used openrouteservice.org as Router Service and applied the key I got from https://openrouteservice.org.
Thank you all...
Finally solved it by myself.
Mapbox is not needed. Used openrouteservice.org as Router Service and applied the key I got from https://openrouteservice.org.
Thank you all...
- Benno
- Phoca Hero
- Posts: 9448
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: OSMR routing blocked by CORS policy: No 'Access-Control-Allow-Origin'
Ok.
Kind regards,
Benno
Kind regards,
Benno