This commit is contained in:
vxclutch
2026-05-27 11:14:26 -04:00
parent fb7d0ee80d
commit 6da1bb9fc1
4 changed files with 24 additions and 14 deletions

View File

@@ -7,19 +7,13 @@
</head>
<body>
<form id="tform" action="localpage.html" method="POST">
<input name="token" id="token" placeholder="Enter token">
<button type="submit">Go</button>
</form>
</body>
<script>
await fetch('/api/receive-token', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ token: USER_TOKEN })
body: JSON.stringify({ token: "foo" })
});
</script>