I am trying to use google's places api to get near by places.... so I tried adding the header just as its written in the code.... It didnt work... then i tired dataType:'jsonp'
... this shows Some error... when i saw the error in chrome... the data returned from google was there but I couldn't access it... but firefox didnt display the returned data from google completely but only the second line of the data "html_attributions":[],
"
$.ajax({
url : "https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=13.089500428429146,77.48688038438559&radius=1000&type=bus_station&key=AXXXXXXXXXXXXXXXXXXXXXXX",
type:"GET",
//headers:{"Access-Control-Allow-Origin":"https://maps.googleapis.com/"},
dataType: 'jsonp',
success: function (return_data_json){
console.log(return_data_json);
}
});