Skip to content

TypeError: Cannot set properties of undefined (setting 'Authorization') #2

@felipepanegalli

Description

@felipepanegalli

Hello Igor, how's going!

This error ocurred on new axios installation "axios": "^1.3.3".

The problem has solved removed the commom in the line 23.

Only need to change
config.headers.commom.Authorization = ....
to
config.headers.Authorization = ....

Thanks for the great course...

config.headers.common.Authorization = `Bearer ${token}`

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