IOT Colombia
IOT Colombia

Reputation: 29

Google maps distance matrix api header

How to deal with the fact that the Google Maps Distance Matrix API does not send the "access-control-allow-origin" header like Google Maps Geocoding API does it.

I have problem using XMLHttpRequest().

Upvotes: 0

Views: 490

Answers (1)

IOT Colombia
IOT Colombia

Reputation: 29

I resolve this situation by adding the "Allow-Control-Allow-Origin:* " extension to chrome. After you add it, you will see an icon in green with the letters "cors" in the upper right corner. Now it's working pretty well.

Upvotes: 1

Related Questions