save
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user