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: { 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();