Resolved: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. The response had HTTP status code 500.
solution : add "&callback=?" to your url
ex:
$.getJSON('https://www.google.com/finance/info?q=NSE:ffin&callback=?', function(data){
alert(data[0].l);
console.log(data);
});
})();
solution : add "&callback=?" to your url
ex:
$.getJSON('https://www.google.com/finance/info?q=NSE:ffin&callback=?', function(data){
alert(data[0].l);
console.log(data);
});
})();
Comments
Post a Comment