Skip to content

Commit

Permalink
add a secure is true and same site equal to none
Browse files Browse the repository at this point in the history
  • Loading branch information
chandankumarm55 authored Nov 19, 2024
1 parent e5a88d2 commit 7f5468d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/controllers/user.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ export const login = async(req, res) => {
.cookie("token", token, {
maxAge: 1 * 24 * 60 * 60 * 1000,
httpOnly: true,
sameSite: 'strict',
sameSite: 'none',
secure: true,
})
.json({
message: `Welcome back ${user.fullname}`,
Expand Down Expand Up @@ -257,4 +258,4 @@ export const savedJobs = async(req, res) => {
});

}
}
}

0 comments on commit 7f5468d

Please sign in to comment.