I am performing one cross domain get operation as shown below.
$.ajax({
type: \"GET\",
url: \"http://localhost:65249/api/item/get\",
data: {
Unfortunately, if you are using JSONP, all requests that return an error fail silently. This is because JSONP uses a script tag instead of XmlHttpRequest. If you want errors to fire, you need to use XHR with CORS. CORS needs to be configured on the server side, and it works client side only in IE 10+.
error dont work on corss domain calls, see jquery doku. for error:
Note: This handler is not called for cross-domain script and cross-domain JSONP requests.
Take a look at this answer: JSONP request error handling