I have a front end application running on tomcat 8080 port,i am making a Ajax call using jquery to the backen application which is python application running on localhost:4277/xyz/aplication.python application is not running on tomcat
Ajax call always gives NetwrokEror-bad request 404
Ajax call code is here
$.ajax(
{
type:'get'
cache: true,
url: 'http://localhost:4277/v1/virtuals/aa54fa50-e4ca-4a16-9f2b-db6491062cf7',
contentType: 'application/json; charset=utf-8',
dataType: 'json',
success: function (data) {
alert('success');
},
error: function (msg, url, line) {
alert('error trapped in error: function(msg, url, line1)');
alert('msg = ' + msg + ', url = ' + url + ', line = ' + line);
console.log(msg);
}
});