Google Maps API; “CORS header ‘Access-Control-Allow-Origin’ missing” error [duplicate]
问题 This question already has an answer here : Google Maps API: No 'Access-Control-Allow-Origin' header is present on the requested resource (1 answer) Closed 9 months ago . 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