Add content-type to sent requests
This commit is contained in:
@@ -96,7 +96,10 @@
|
||||
this.error = null;
|
||||
fetch("./api/password", {
|
||||
credentials: 'include',
|
||||
method: "POST",
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
method: 'POST',
|
||||
body: JSON.stringify(this.passwordData),
|
||||
}).then((r) => {
|
||||
if (r.status === 200) {
|
||||
|
||||
Reference in New Issue
Block a user