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

0
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 => { console.info("Success:", result); }) .catch(error => { console.info("Error:", error); }); Error Any suggestion appreciated. Thanks
asked
1 answers
0

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

https://docs.mendix.com/refguide/published-rest-service#3-2-authentication-methods

answered