Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

fetch not working javascript

async function sendMe()
{

let r =await fetch('/test', {method: 'POST', body: JSON.stringify({a:"aaaaa"}), headers: {'Content-type': 'application/json; charset=UTF-8'}})
let res = await r.json();
console.log(res["a"]);
}
 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #fetch #working #javascript
ADD COMMENT
Topic
Name
6+6 =