REST APIを使用してブラウザ(IE11、Firefox、Chrome)でローカルの書かれたjavascriptを使用してALMにアクセスしたいだけですが、ログインできません。 私はHow to access HP ALM using REST and local javascript?に示すコードを使用しようとしましたが、同じエラーが常にある:OPTIONS https://alm.....net/qcbin/authentication-point/authenticate 401(認証オブジェクトがSecurityContextがで見つかりませんでした)休憩APIを使用してhp almにアクセスする方法javascript:自動ログイン
たぶん問題は、私はどのように知っていないということであり、
submit my credentials via XML
リンクに記載されています。手伝っていただけませんか?
私のコードは次のとおりです。あなたが
/authentication-point/alm-authenticate
と
/authentication-point/authenticate
RESTリソースを混入しているよう
function signinTest() {var auth = btoa(name + ":" + password);
$.ajax({
type: "POST",
url: 'https://alm.....net/qcbin/authentication-point/authenticate',
headers: {
"Authorization": "Basic " + auth
},
xhrFields: {
withCredentials: true
},
success: function (data) {
console.log("succes " + data);
},
error: function (data) {
console.log("error ");
console.log(data);
}
});
}