don't join credentials as they are not set in cors in go
This commit is contained in:
parent
b35e8d4131
commit
79743f33cb
|
@ -22,7 +22,6 @@ export const actions = {
|
|||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
credentials: 'include',
|
||||
body: JSON.stringify({
|
||||
email: email,
|
||||
password: password
|
||||
|
@ -39,7 +38,7 @@ export const actions = {
|
|||
|
||||
throw redirect(301,'/profile');
|
||||
} else {
|
||||
throw redirect(301,'/');
|
||||
throw redirect(301,'/login');
|
||||
}
|
||||
/*
|
||||
const error = await res.json();
|
||||
|
|
Loading…
Reference in New Issue