I'm trying to get the result json of a Nearby Search of Google Places API. I'm getting this error : "No Access-Control-Allow-Origin header is present on the requested resource."
The code I'm using is :
<html>
<head>
<title>Place searches</title>
<script type="text/javascript" src="lib/jquery-2.1.1.min.js"></script>
<script>
var mJson = "http://maps.googleapis.com/maps/api/place/nearbysearch/json?location=-33.8670522,151.1957362&radius=500&types=food&name=cruise&key=AIzaSyCy639YCvWAzb3Sx0wkMzO5gxG-nHei4QU";
$.getJSON(mJson,function(data){
console.log(data);
});
</script>
</head>
<body>
<h1>Google places test</h1>
</body>
</html>