hello,
i have been messing around with media scanner
and used an ajax call to /cls
unless i set datatype to jsnop
i get a cors error.
and if i use jsonp i never get anything but an error. as the data is not a correct jsonp format.
but i do get the data from the media scanner app.
i can see it in the data in the developer console of my browser.
my request
$.ajax({
url: "http://127.0.0.1:8000/cls",
type: 'GET',
dataType: 'jsonp',
contentType: "application/json",
success: function(data) {
$("#info").html(typeof data);
},
error: function(XMLHttpRequest, textStatus, errorThrown){
$("#info").append(XMLHttpRequest + " " + textStatus + " " + errorThrown);
}
});