-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
None
-
Affects Version/s: 2.2.1
-
Component/s: HTTP Console
-
None
-
Environment:Running on MacOS 10.7.5 - problem not verified on other platforms
-
OS X
-
I am having a play with the Simple REST Interface via "mongod --rest --jsonp" and have run into the following error when making calls with JQquery:
Resource interpreted as Script but transferred with MIME type text/plain
The JQuery I am using is pretty standard:
$.ajax({
type: 'GET',
url: queryUrl,
async: true,
contentType: "application/json",
dataType: 'jsonp',
jsonp: 'jsonp',
success: function(msg) {
if (msg.response != null && msg.response.success == true)
},
error: function(jqXHR, textStatus, errorThrown)
});