Angular 6 httpClient Post with credentials
In order to request with cookies you will need to add withCredentials in your request. See following code
const httpOptions = {
headers: new HttpHeaders({
'Authorization': fooBarToken
}),
withCredentials: true
};
The following code works too:
return this.http.get<{}>('YOU API URL', {
withCredentials: true
})