I have found a workaround for this
Go to this site
https://meyerweb.com/eric/tools/dencoder/
Encode this string
{"project_name":"YOUR_NODE_PROJECT_NAME"}
And replace URL_ENCODED_STRING_HERE in the fetch code with the string from the site
Also replace the server ip with yours
And finally paste this in your browser console F12 on Windows or Cmd + Shift + I on macOS. make sure the tab open is server panel's tab
fetch("http://SERVER_IP/project/nodejs/remove_project", {
"headers": {
"accept": "application/json, text/javascript, /; q=0.01",
"accept-language": "en-US,en;q=0.9",
"cache-control": "no-cache",
"content-type": "application/x-www-form-urlencoded; charset=UTF-8",
},
"body": "data=URL_ENCODED_STRING_HERE",
"method": "POST",
"mode": "cors",
"credentials": "include"
});