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: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
},
|
},
|
||||||
credentials: 'include',
|
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
email: email,
|
email: email,
|
||||||
password: password
|
password: password
|
||||||
|
@ -39,7 +38,7 @@ export const actions = {
|
||||||
|
|
||||||
throw redirect(301,'/profile');
|
throw redirect(301,'/profile');
|
||||||
} else {
|
} else {
|
||||||
throw redirect(301,'/');
|
throw redirect(301,'/login');
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
const error = await res.json();
|
const error = await res.json();
|
||||||
|
|
Loading…
Reference in New Issue