Skip to content

Authorization header capitalization #206

Open
@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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions