Skip to content
Discussion options

You must be logged in to vote

yeah man just try to set it like this from your backend .

res.status(200).cookie("token", token, { httpOnly: true, maxAge: 7 * 24 * 60 * 60 * 1000, secure: process.env.NODE_ENV === "production", })

remove sameSite

Replies: 5 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@amirjld
Comment options

Answer selected by amirjld
@Raaz902
Comment options

@amirjld
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Aminul667
Comment options

Comment options

You must be logged in to vote
1 reply
@Aminul667
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
5 participants