score:0

so i used different approach with axios and it worked:

let axiosconfig = {
  headers: {
   'content-type': 'application/json;charset=utf-8',
   'access-control-allow-origin': '*',
 },
};
axios
 .post(webhookurl, info, axiosconfig)
 .then((res) => {
   console.log('response received: ', res);
 })
 .catch((err) => {
   console.log('axios error: ', err);
 });

Related Query

More Query from same tag