Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Response Headers Blank in 1.4.9? #13840

@mcblum

Description

@mcblum

I've tried every Google search and server-side fix I can think of. For whatever reason, the response.headers object is always blank in my http interceptor. Here is the response from the server:

Access-Control-Allow-Credentials:true
Access-Control-Allow-Origin:http://site.url
Authorization:Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJI

Here is what I get when I log the response:

config: Object
    headers: Object
        Accept: "application/json, text/plain, */*"
        Authorization: "Bearer eyJ0eXAiOiJK..."
        __proto__: Object
        method: "GET"
        paramSerializer: (t)
        transformRequest: Array[1]
        transformResponse: Array[1]
        url: "http://api.url/admin/pages"
        __proto__: Object
        data: Object
            pages: Array[6]
            __proto__: Object
        headers: (n)
            arguments: (...)
            caller: (...)
            length: 1
            name: ""
            prototype: Object
            __proto__: ()
            <function scope>
    status: 200
    statusText: "OK"

I've tried everything and so I decided to submit an issue. Thanks for your help, and thanks for Angular.
Matt

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions