How do I set multiple Set-Cookie
headers like google does. Tried doing it in Go and Node.js but it doesn't seem possible.
Is it possible to do this without any framework(s)?
- Go
res.Header().Set("Set-Cookie", "q=city,c=acc; HttpOnly; SameSite=Lax")
- Node.js
res.writeHead(200, {
"Content-Type": "text/html",
"Set-Cookie": "q=city,c=acc; HttpOnly; SamSite=Lax",
"Cache-Control": "max-age=120"
});