Google distance matrix rest api


I´m try to use google distance matrix, but i have some issues.

When i put url in appgyver, do not work.

When i put in browser, work fine.

Please, i need some help.


It is a CORS issue. With Postman or from your browser you won’t see it but when an external website (i.e AppGyver) calling an API, this might occur. Mainly the trick is to manipulate the header value “access-control-allow-origin” to accept your website, or any site by having “*” as value.

I have found the following from a quick google search: