i´m firing an ajax/jsonp request to my cloudant app:
var obj = $.ajax({
url: "http://xyz",
dataType: 'jsonp',
success: function(data) {
//SOME CODE
},
error: function() {
//SOME CODE
}
});
the response is ok and i can read out my data. but I´m getting the following js warning:
Resource interpreted as Script but transferred with MIME type text/plain.
i need to make this request an jsonp request (cross domain policy), AFAIK jsonp returns as a script and gets executed by the browser. do i have to set a request header? I tried it with the 'accepts' and 'converters' options, but didn't make it work yet. (I´m using GoogleChrome, but also happens in Safari/FF)
cheers, tom
PS: I want to get rid of the warning as this ajax request gets triggered every 2 seconds. So the console looks pretty bad...