Error : Network Request failed while making a POST request to published REST API

Hi, I am trying to send a HTTP POST request to published REST service in Mendix, but I am getting “Network Request failed” error.  I am using my local ip instead of local host in the server call. fetch("api/xxx", { method: "POST", body: formData }) .then(response => response.json()) .then(result => {"Success:", result); }) .catch(error => {"Error:", error); }); Error Any suggestion appreciated. Thanks
1 answers

Which authentication method do you use? If you use “Active session”, you need to pass the csrf token