Passing JWT in headers with axios
问题 I've created a small project with a node back-end and react front-end to fetch the data through REST calls i used Axios library. But when i pass the headers with it I keep getting an error saying Failed to load resource: the server responded with a status of 401 (Unauthorized) . I found out two methods and both did not work. They are export const getUsersDetails=()=>{ console.log('calling'); return (dispatch) => { return axios.get('http://localhost:3030/users',{headers: { "Authorization":