This website uses Cookies. Click Accept to agree to our website's cookie use as described in our Privacy Policy. Click Preferences to customize your cookie settings.
In a fetch for JSON POST adding these two headers:
let response = await fetch(url, {
method: 'POST',
body: JSON.stringify(data),
headers:
{
'Content-Type': 'application/json',
'Accept': 'text/plain',
}
});
return...