Google Maps API; “CORS header ‘Access-Control-Allow-Origin’ missing” error

I’m trying to calculate the estimated travel time between two places, with the Google Maps API. I am asking for the data in the following way: const Url = 'https://maps.googleapis.com/maps/api/distancematrix/json?origins=25.7694708,-80.259947&destinations=25.768915,-80.254659&key=' + API_KEY; try { const response = await fetch(Url); console.log(response); const data = await response.json(); console.log(data.rows); } catch(e){ console.log(e); } The problem is that in … Read more