I am giving API call to google map API and its throwing cors error. such as:- No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin
code snippet
$.getJSON(
"https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=" +
city_lat + "," + city_lon + "&radius=500&type=restaurant&key=AIzaSyC0Lytb6QPHW9NNMwfJva6U4meM9tnvtlk",
function(val) { }
);