Is there any way to attach a header in axios.all method or do we have to attach the header to each request individually.
axios.all([
axios.delete('http://localhost:5000/requests/'+{id}),
axios.post('http://localhost:5000/records/'+{id, response}),
],{
headers: {Authorization: localStorage.getItem('auth-token')}
}).then(res => console.log(res.data))
.catch(err => console.log(err));