you cannot execute cross-domain AJAX request,
if you want to allow this you can use JSONP:
$.ajax({
url: "https://api.forecast.io/forecast/APIKEY/40.463487,17.248535",
dataType: "jsonp",
success: function (data) {
console.log('here');
console.log(data);
}
});