axios delete method gives 403

后端 未结 2 1016
余生分开走
余生分开走 2021-01-28 09:56

I am calling delete method from my node-js application.

Its working fine from Postman but giving me 403 while calling this API from code.

2条回答
  •  有刺的猬
    2021-01-28 10:47

    So after a number of tries, I found it working.

    Please follow the order sequence it's very important else it won't work

    axios.delete(
            URL,
            {headers: {
              Authorization: authorizationToken
            },
            data:{
              source:source
            }}
          );
    

提交回复
热议问题