I just want to access ALM via local written javascript js in the browser (IE11, Firefox) via the REST
API but I can not login. Here is my code for requesting the LWSSO
cookie via jquery:
var auth = btoa(USER+":"+PASSWORD);
$.ajax({
type: "POST",
url: https://alm.xxx.net/qcbin/authentication-point/j_spring_security_check,
headers: {
"Authorization": "Basic " + auth
},
success : function(data) { },
});
The response header contains:
https://alm.xxx.net/qcbin/authentication-point/login.jsp;jsessionid=1gfsdk4pn525f1ur55e2x2zzte?login_error
With OTA/directX
object everything works fine but I want to use the REST
API via javascript. Can anyone help me?