DEV Community

Aben
Aben

Posted on

im getting an error :"401 not authorized, no token", when I try to make a put request

hello guys,
im encounting a problem as mention above when I try to update my profile using a put request
the token is stored in the local storage and I'm sending it along in the authorization header
so when i send the request and inspect the network tab i can see that the authorization heaser is not present in the request headers, and i don't know why ,
please, could someone help me

here is my back end:
Image description

and here is the middleware I'm using:
Image description
here is the front end :

and for state management I'm using redux :

Image description

Image description

Image description

Top comments (0)