Here is my code
$.ajax({
url: 'https://api.flightstats.com/flex/schedules/rest/v1/json/flight/AA/100/departing/2013/10/4?appId=19d57e69&appKey=e0ea60854c1205af43fd7b1203005d59&callback=?',
dataType: 'JSONP',
jsonpCallback: 'jsonCallback',
type : 'GET',
async: false,
crossDomain: true,
success: function(data) {
console.log(data);
}
});
What am I doing wrong? should I add or change anything in here? Any help would be appreciated. Thanks
async: falsedoesn't work with JSONP. Why are you usingjsonpCallbackANDcallback=?crossDomainis not needed for cross-domain requests (ironic isn't it?)