121
rated 0 times
[
125]
[
4]
/ answers: 1 / hits: 26382
/ 5 Years ago, mon, august 19, 2019, 12:00:00
Typically it seems that when using Express, in the res object there is cookie so you can do something like:
res.cookie('session', sessionCookie, options);
In the API routes offered by NextJS in Next 9, when looking at res, this does not exist. Is there a way to set the cookie for a response object in a Next API Route function?
More From » node.js