Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
felipepanegalli opened this issue Feb 20, 2023 · 0 comments

Comments

@felipepanegalli
Copy link

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}`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant