I use the http like this:
private headers = new Headers({ 'Content-Type': 'application/json' })
login(loginUser: LoginUser): Promise<User> {
return this.http.post('http://localhost:9009/api/users/login', JSON.stringify(loginUser), { headers: this.headers })
.toPromise()
.then(res => res.json())
.catch(this.handleError)
}
This should set cookie to browser automatically, like this:

But there is no cookie set in browser.
- Angular version: 2.4.10
- Browser: Chrome 56.0.2924.87 (64-bit) | FireFox 52.0.2 (64-bit)
- Language: TypeScript 2.2.1
- Node (for AoT issues): node --version = 3.10.10
The response headers:
