howtographql / angular-apollo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Headers not set properly

kamilkisiela opened this issue · comments

const headers = new HttpHeaders();
headers.append('Authorization', authorization);

According to angular.io

The HttpHeaders class is immutable, so every set() returns a new instance and applies the changes.

So no headers will be attached to a request.