I make web application with React, Express, MongoDB.
And, I want to pass jwt token with header.
But, I pass it, get 401 error (Unauthorized).
In login ac
Try res.header('x-auth', token).send() 'x-auth' can be anything. Above is used to set token in the headers