Hello,
I need to get data from Storm Rest UI, for example,
http://server:port/api/v1/cluster/summary
through ajax cross-domain request in javascript.
My code is the next:
$.ajax({
url: sUrl,
dataType: 'jsonp',
success: function(response) {
console.log('Data OK ... ');
},
error: function(xhr, status, error) {
console.log('Status: ' + status);
console.log('ERROR: ' + error);
console.log('InText: ' + xhr.responseText);
}
});
And the response is: "Status: parsererror" storm.js:66
"ERROR: Error:
jQuery211012710382721385483_1417447726524 was not called" storm.js:67
"InText: undefined"
How can i do a ajax cross-domain request in javascript?
Thanks