mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-13 11:35:28 +00:00
more robust cookies
This commit is contained in:
@@ -44,7 +44,7 @@ const middlewares = [
|
||||
|
||||
// set test cookie
|
||||
(req, res, next) => {
|
||||
res.setHeader('Set-Cookie', 'test=woohoo!; Max-Age=3600');
|
||||
res.setHeader('Set-Cookie', ['a=1; Path=/', 'b=2; Path=/']);
|
||||
next();
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user