0

Ajax は 404 エラー コードを返しますが、これはクロスドメインの問題ではありません。

TIZEN Web アプリケーション プロジェクトで、TIZEN プロジェクトで使用する必要がある機能を持つ WebService に対して ajax リクエストを実行したいと考えています。もともと xhr.status は 0 でしたが、クロスドメインの問題を解決して 404 に変更されました。URL パラメータは正確です。

どうしたの?

$.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 + ")"));
    }
});

問題:

app.js (154) :404
app.js (155) :undefined
4

2 に答える 2