send res.cookie after or before response in express code example
Example: set cookie in node
res.setHeader('Set-Cookie','visited=true; Max-Age=3000; HttpOnly, Secure');
res.setHeader('Set-Cookie','visited=true; Max-Age=3000; HttpOnly, Secure');