0

I got this error when I tried to call graphhopper routing service from my html page with jQuery ajax. It work when I run html page in browser but not work when I hosted the page on web server.

$.ajax({
    timeout: 5000,
    url: https://graphhopper.com/api/1/route?locale=en&.... points and key ,
    type: "GET",
    dataType: "json",
    crossDomain: true
})

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://graphhopper.com/api/1/route?locale=en&point

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459

0 Answers0