Even though it's not a cross-domain problem, Ajax is returning a 404 error code.
In my TIZEN Web application project, I am trying to make an ajax request to a WebService that contains functions necessary for the project. Initially, the xhr.status was 0 but changed to 404 after resolving the cross-domain issue. The URL parameter is correct.
What could be causing this problem?
$.ajax({
crossOrigin:true
, type: "POST"
, url: "http://ip/web projeect/web source/function"
, data: null
, contentType: "application/json; charset=utf-8"
, dataType: "json"
, async: false
, success: function (jSonResult) {
},
error: function (xhr, status, error) {
console.log(xhr.status);
console.log(eval("(" + xhr.responseText + ")"));
}
});
Error Details:
app.js (154) :404
app.js (155) :undefined