angular2 xhrfields withcredentials true
<p>I am trying to login to a system. In angular 1, there was ways to set </p>

<pre><code>withCredentials:true
</code></pre>

<p>But I could not find a working solution in angular2</p>

<pre><code>export class LoginComponent {
    constructor(public _router: Router, public http: Http, ) {

    }


    onSubmit(event,username,password) {
        this.creds = {'Email': 'harikrishna@gmail.com','Password': '01010','RememberMe': true}
        this.headers = new Headers();
        this.headers.append('Content-Type', 'application/json');

        this.http.post('http://xyz/api/Users/Login', {}, this.creds)
              .subscribe(res =&gt; {
                  console.log(res.json().results);

              });
     }

}
</code></pre>