I am getting a json parse error on a cross-domain ajax call not sure how to get rid of the issue
问题 The call looks something like so $.ajax({ url: url, crossDomain: true, dataType: 'jsonp', success: function(){console.log('success');} }) From the server code it something like so string data = callback + "(" jsonData + ")"; send("application/javascript",data); The jsonData is valid, which I'm pretty sure of. I have tested it out on many json validators online. I've also tried switching the content-type from application/javascript to application/json in the server code but it does no