don't join credentials as they are not set in cors in go

This commit is contained in:
ed barz 2023-06-01 11:28:36 +02:00
parent b35e8d4131
commit 79743f33cb
1 changed files with 1 additions and 2 deletions

View File

@ -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();