Add content-type to sent requests
This commit is contained in:
@@ -89,7 +89,10 @@
|
||||
localStorage.removeItem('login')
|
||||
}
|
||||
fetch("./api/login", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
method: 'POST',
|
||||
body: JSON.stringify(this.passwordData),
|
||||
}).then((res) => {
|
||||
this.loading = false;
|
||||
|
||||
Reference in New Issue
Block a user