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 found a way that's works:
axios .delete(URL, { params: { id: 'IDDataBase'}, headers: { token: 'TOKEN', }, }) .then(function (response) { }) .catch(function (error) { console.log(error); });
I hope this work for you too.