lack of headers causing flask to not recognise json

pull/75/head
Christopher Usher 5 years ago
parent cfd4f21e56
commit 22a7c490b3

@ -130,6 +130,10 @@
function testReset() {
fetch(document.getElementById("server").value+"/thrimshim/reset/"+document.getElementById("rowId").value, {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({token: user.getAuthResponse().id_token})
}).then(data => console.log(data));
}

Loading…
Cancel
Save