I am creating a small user interface for sending a JSON object to an external CastIron server (no matter what type of server is important for this issue) using jQuery. The initial submission is working fine, but I am not receiving a response from the server. Here's what jQuery looks like:
$.ajax({
url: 'http://cirun2/Impact/CreateImpacts',
type: "POST",
data: JSON.stringify(myobj),
dataType: 'text',
async: false,
complete: function(returned_data) {
$('#output').append("<p>Submitted successfully to CastIron. Returned data: " + returned_data + "</p>");
},
error: function(error_text) {
console.log("Update unsuccessful. Status: ", error_text);
}
});
I get 'Sent successfully in CastIron. Returned data: message [object Object]', but it does not display text, and firebug indicates an error.

And here is the complete error:
"[Exception ..." Failure "nsresult:" 0x80004005 (NS_ERROR_FAILURE) "location:" JS frame :: http://server.company.com/mr/js/jquery-1.11.0.min.js ::. send :: line 4 ": no]"
200 - JSON, . , . "" CastIron, , . , .
EDIT (7MAY2014): , , . CORS. . , , ?
Response Headers
Access-Control-Allow-Head... X-Requested-With
Access-Control-Allow-Orig... *
Connection keep-alive
Content-Length 288
Content-Type application/json; charset=utf-8
Date Wed, 07 May 2014 14:34:51 GMT
X-Powered-By Express
Request Headers
Accept application/json, text/javascript, */*; q=0.01
Accept-Encoding gzip, deflate
Accept-Language en-US,en;q=0.5
Host myserver.mycompany.com:4000
Origin http://ironsides.zayo.com
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:28.0) Gecko/20100101 Firefox/28.0