Next.js Discord

Discord Forum

res.cookie('token', token, { httpOnly: true, secure: true, });

Unanswered
Caucasian Shepherd Dog posted this in #help-forum
Open in Discord
Avatar
Caucasian Shepherd DogOP
server is on nodejs and frontend is nextjs
upon setting cookie on localhosts it works fine but my both projects are deployed on vercel and upon running it on vercel . cookies gets deleted automatically after a refresh in chrome browser and in firefox no token are set
can anyone help?

0 Replies