Add content-type to sent requests

This commit is contained in:
Yukino Song
2025-05-28 14:09:12 +08:00
parent b2ec048333
commit f3d2078b11
7 changed files with 53 additions and 20 deletions

View File

@@ -81,7 +81,10 @@
this.error = null;
this.loading = true;
fetch("./api/password", {
method: "POST",
headers: {
'Content-Type': 'application/json'
},
method: 'POST',
body: JSON.stringify(this.passwordData),
}).then((r) => {
this.loading = false;