title: Angular 2.0 Http post request does not send credentials
body: <p>Api works perfectly when called from advanced client rest but when I called through <code>http</code> it doesn't work as expected. This is because it is not sending the credentials. Guys help me how can I use here <code>withCredentials:true</code>.</p>
  
  <p>Here is my angular code :</p>
  
  <pre><code>var headers = new Headers();
  headers.append('Content-Type', 'application/x-www-form-urlencoded');
  this.http.post('http://localhost/jiffy_fun/laravel/public/token',{headers: headers}).map(res =&gt; res.json()).subscribe(res =&gt; {this.token = res});
  </code></pre>
  
  <p>Thanks</p>