In my react app i am using axios to perform the REST api requests.
But it\'s unable to send the Authorization header with the request.
Here is my co
You can create config once and use it everywhere.
const instance = axios.create({ baseURL: 'https://some-domain.com/api/', timeout: 1000, headers: {'Authorization': 'Bearer '+token} }); instance.get('/path') .then(response => { return response.data; })