more robust cookies

This commit is contained in:
Rich Harris
2018-10-01 22:47:11 -04:00
parent 9773781262
commit 709c9992e3
4 changed files with 24 additions and 27 deletions

View File

@@ -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();
},