Skip to content

Http response do not include headers #5237

@bpquintanilha

Description

@bpquintanilha

Maybe i am doing something wrong but when i make a request with Http i can see on the Network tab on chrome that the response include a custom header called 'Authorization' used to refresh the JWT. But when i try to access the response.headers it prints empty on the console.

return this.http.request(req).map((res: Response) => console.log(res.headers.values()));

image

the same behaviour when printing keys().

the request headers, on the other hand, do print all the custom headers i add to the request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions