JQuery:
$.ajax({ url : url, type : 'GET', dataType: 'json', data: { 'FN' : 'GetPages', 'PIN' : '7659' }, xhrFields: { withCredentials: true }, crossDomain: true, success: function(data) { alert('succsess'); console.log('data', data); }, error: function (xhr, ajaxOptions, thrownError) { alert('error'); console.log(xhr.status); console.log(thrownError); } });
Firebug firefox network

What's happening
The AJAX error: event fires and my console.log output is:
xhr.status → 0
thrownError → (empty String)
This is normal? When I type the URL in the browser, I get the file with the JSON content, this should not be a problem, right?
source share