in my google chrome extension I made post call that looks like this:
public someapiCall(username: string, password: string) {
var url = 'http://test.someTestServer.com/api/user/someApiCall';
let headers = new Headers({
"Content-Type": "application/x-www-form-urlencoded"
});
let options = new RequestOptions({ headers: headers, withCredentials: true });
return this.http.post(url, 'UserName=' + username + '&Password=' + password, options)
.map(res => {
console.log(res);
let cookies = res.headers.getAll('set-cookie');
console.log(cookies);
})
.catch(this.handleError);
}
The problem is that when I call this, fiddler shows me these response headers:
but when I check Response object that is printed in console, it does not contain any header that references to cookie. Does anyone know where is the problem??
