We have proxy implemented in our office, I need to make webservice call using jQuery AJAX.
If we skip proxy, the web method gets called without any errors.
But the moment we enable proxy, we get
"NetworkError" no more details available regarding this error.
We cannot disable proxy forever, now we want to call this webservice using jQuery AJAX.
Please help me resolve the issue.
var surl = "http://www.mydomain.com/MyJSONService/Service.asmx/HelloWorld";
$.ajax({
type: 'GET',
url: surl,
crossDomain: true,
contentType: "application/json; charset=utf-8",
dataType: "json",
xhrFields: {
withCredentials: true
},
success: function(data, statusCode, xhr) {
alert(data.d);
},
error: function(xhr, status, error) {
alert('Error !!');
},
async: false,
cache: false
});