Fix API requests content type

This commit is contained in:
Yukino Song
2025-07-15 22:22:47 +08:00
parent 4f6334abdb
commit 2a97b3cbff
4 changed files with 21 additions and 8 deletions

View File

@@ -655,7 +655,10 @@
this.unpairAllPressed = true;
fetch("./api/clients/unpair-all", {
credentials: 'include',
method: 'POST'
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
})
.then((r) => r.json())
.then((r) => {