Skip to content

Authorization header capitalization #206

@MichelJonkman

Description

@MichelJonkman

The setToken method sets the header as "Authorization" but if there is already an authorization header without capital A they can combined in the final request causing errors to occur. In my case this was the cause of Strapi /users/me giving an 401 response.

Nuxt version: 2.15.8
@nuxt/http version: 0.6.4

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