How to access hp alm with rest api javascript: automatic login
<p>I just want to access ALM via local written javascript in the browser (IE11, Firefox, Chrome) via the REST API but I can not login. 
I tried to use the code shown in <a href="https://stackoverflow.com/questions/31670129/how-to-access-hp-alm-using-rest-and-local-javascript">How to access HP ALM using REST and local javascript?</a> , but there is always the same Error: OPTIONS <a href="https://alm.....net/qcbin/authentication-point/authenticate" rel="nofollow noreferrer">https://alm.....net/qcbin/authentication-point/authenticate</a> 401 (An Authentication object was not found in the SecurityContext)</p>

<p>Maybe the problem is, that I don't know how to </p>

<blockquote>
  <p>submit my credentials via XML</p>
</blockquote>

<p>as mentioned in the link. Could you please help me?</p>

<p>Me Code is:</p>

<pre><code>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);
            }
        });

    }
</code></pre>