Axios Delete request with body and headers?

后端 未结 11 2126
梦谈多话
梦谈多话 2020-11-28 08:16

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         


        
11条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-28 09:03

    For Delete, you will need to do as per the following

    axios.delete("/", { data:<"payload object">})
    

    It worked for me.

提交回复
热议问题