I have an application in MobileFirst, and use an ajax function to call REST WS created with IBM RAD, this is the AJAX function:
$.ajax({
type: "GET",
url: "http://localhost:9080/myproject/rest/helloworld/",
contentType: "text/plain",
async: false,
success: function (response) {
var sHelloWorld = response;
$("#prueba").empty();
$("#prueba").append(sHelloWorld);
},
error: function (result) {
alert('ERROR ' + result.status + ' ' + result.statusText);
}
});
But I get error
"Access Denied result.status = 0"
Could you be related to this article? Is it possible to specify a port in a ajax call