Cannot authenticate $http with passport Basic Auth
<p>How can I make my $http call with passport basic auth?</p>

<p>I setup basic auth with passport on my server, and I can use POSTMAN to test. But when I try to do it on my angular application I cannot get it to pass the username and password for the basic auth.</p>

<p>I have the following on my $http call</p>

<pre><code>$http({
    method:'POST',
    url: 'http://myapicall.com/api/login',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded',
      'Authorization' : 'Basic Username:MySecret'
    },....
</code></pre>

<p>Do I need to add anything else? I keep getting not authorized and when I use the same username and password on postman it works fine.</p>