Sending a details request to Google Places API – (CORS error) [duplicate]

The previous answer suggests using a server-side proxy. While that is a good solution for the general case of accessing a web API that does not support CORS or JSONP, it’s not the best solution for this specific problem.

Instead, use Google’s JavaScript Places Library which is designed specifically for this kind of use. The links at the top of that page provide additional samples, guides, and reference material.

Leave a Comment