Skip to content

Commit

Permalink
fix(backend): change httpOnly
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakharMolchanov committed Jun 19, 2024
1 parent 521e01b commit 6fb7814
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/src/controllers/AuthControllerLogin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const AuthControllerLogin = [
});

res.cookie("token", token, {
httpOnly: true,
httpOnly: false,
});

return res.status(200).json({ message: "Вход выполнен успешно" });
Expand Down
2 changes: 1 addition & 1 deletion backend/src/controllers/AuthControllerRegister.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const AuthControllerRegister = [
});

res.cookie("token", token, {
httpOnly: true,
httpOnly: false,
});

return res.status(200).json({ message: "Пользователь успешно зарегистрирован" });
Expand Down

0 comments on commit 6fb7814

Please sign in to comment.