$.ajax({ url: 'http://example.com/api', dataType: 'jsonp', success: function(data){ console.log(data); } });
$.ajax({ url: 'http://example.com/api', dataType: 'json', xhrFields: { withCredentials: true }, success: function(data){ console.log(data); } });
$.ajax({ url: 'http://proxy.com/api', dataType: 'json', success: function(data){ console.log(data); } });