I\'m using Axios while programing in ReactJS and I pretend to send a DELETE request to my server.
To do so I need the headers:
headers: { \'Authori
I encountered the same problem... I solved it by creating a custom axios instance. and using that to make a authenticated delete request..
const token = localStorage.getItem('token'); const request = axios.create({ headers: { Authorization: token } }); await request.delete(', { data: { }});