title: http post - how to send Authorization header?
body: <p>How do you add headers to your http request in Angular2 RC6?
  I got following code:</p>
  
  <pre><code>login(login: String, password: String): Observable&lt;boolean&gt; {
      console.log(login);
      console.log(password);
      this.cookieService.removeAll();
      let headers = new Headers();
      headers.append("Authorization","Basic YW5ndWxhci13YXJlaG91c2Utc2VydmljZXM6MTIzNDU2");
      this.http.post(AUTHENTICATION_ENDPOINT + "?grant_type=password&amp;scope=trust&amp;username=" + login + "&amp;password=" + password, null, {headers: headers}).subscribe(response =&gt; {
        console.log(response);
      });
      //some return
  }
  </code></pre>
  
  <p>The problem is, that angular doesn't add Authorization header. Instead of that, in request I can see following additional headers:</p>
  
  <pre><code>Access-Control-Request-Headers:authorization
  Access-Control-Request-Method:POST
  </code></pre>
  
  <p>and sdch added in Accept-Encoding:</p>
  
  <pre><code>Accept-Encoding:gzip, deflate, sdch
  </code></pre>
  
  <p>Unfornately there is no Authorization header. How should I add it correctly?</p>
  
  <p>Whole request sent by my code looks as follow:</p>
  
  <pre><code>OPTIONS /oauth/token?grant_type=password&amp;scope=trust&amp;username=asdf&amp;password=asdf HTTP/1.1
  Host: localhost:8080
  Connection: keep-alive
  Pragma: no-cache
  Cache-Control: no-cache
  Access-Control-Request-Method: POST
  Origin: http://localhost:3002
  User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
  Access-Control-Request-Headers: authorization
  Accept: */*
  Referer: http://localhost:3002/login
  Accept-Encoding: gzip, deflate, sdch
  Accept-Language: en-US,en;q=0.8,pl;q=0.6
  </code></pre>