I have set up locally (same machine (debian)):
- backend from github . com/GIScience/openrouteservice on port 8082
- frontend from github . com/GIScience/ors-map-client on port 8085
Every request which I send to backend works (I’m getting the response, tested with postman). The problem is when I try to send it from frontend. I have changed service endpoint for directions to ip:8082/ors/v2/directions. On map I’m getting “It was not possible to find a route connecting the places with the selected profile and filters” and in console I’m getting “Access to XMLHttpRequest at ‘ip:8082/ors/v2/directions/driving-car/geojson’ from origin ‘ip:8085’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource”. It worked perfectly fine before I switched to my own backend. Anyone knows what possibly I’m doing wrong? Is this CORS error by frontend or backend side? Did someone have similar issue and fix it?
Removed http from links because new users can only make post with max 2.