gis-ops / docker-valhalla

This is our flexible Docker repository for the Valhalla routing engine
MIT License
240 stars 70 forks source link

CORS issue #34

Closed vinayakkulkarni closed 2 years ago

vinayakkulkarni commented 2 years ago

hey,

I am able to access the built APIs using cURL but when I try to ingest it in a frontend app, I am getting CORS issue(s).

TimMcCauley commented 2 years ago

Are you using a proxy before sending the request to Valhalla? Is your frontend app located on the same domain as where Valhalla is?

vinayakkulkarni commented 2 years ago
  1. No, I am not using any proxy.
  2. Yes, the APIs are on one domain but different sub-domains https://api.<domain>.com/ & the frontend is on another https://frontend.<domain>.com/
TimMcCauley commented 2 years ago

Ok, that looks sound. Are you certain your request is valid? Can you copy the request as curl from Chrome or w/e you are using (network tab)?

TimMcCauley commented 2 years ago

Closing this now. Please open again if you have any further questions.