I'm facing a problem in ajax call. When I have called to given URL, Everything is fine but it is coming in error method of ajax response, Code is below
$.ajax({
url: "My_URL",
Method: "Get",
async: false,
success: function(msg){
console.log("success");
console.log(msg);
},
error: function(msg){
console.log("error");
console.log(msg);
}
});
Please see the attached image which is fine but response in error method. Why ?
Any can guide me please ?