Skip to content

Commit

Permalink
Revert "fix: Set httpOnly attribute on JWT cookie (#2570)" (#2572)
Browse files Browse the repository at this point in the history
This reverts commit 0864da6.
  • Loading branch information
DafyddLlyr authored Dec 15, 2023
1 parent cf8a6ab commit 0e1ca28
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion api.planx.uk/modules/auth/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ export const handleSuccess = (req: Request, res: Response) => {
if (isLiveEnv()) {
cookie.secure = true;
cookie.sameSite = "none";
cookie.httpOnly = true;
}

res.cookie("jwt", req.user.jwt, cookie);
Expand Down

0 comments on commit 0e1ca28

Please sign in to comment.