From 3cc5a1b1573929ce097438bc1dbd476ee083c3dc Mon Sep 17 00:00:00 2001 From: Jarvis Date: Tue, 21 Jan 2025 17:25:13 +0800 Subject: [PATCH] feat: use cookie.httpOnly in reset --- src/session.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/session.js b/src/session.js index 4084a4b..b0e9163 100755 --- a/src/session.js +++ b/src/session.js @@ -98,7 +98,7 @@ module.exports = function(options = {}) { reset: function() { if (!this.headerSent || this.writeable) - this.cookies.set(key, null, { expires: new Date(0) }) + this.cookies.set(key, null, { expires: new Date(0), httpOnly: cookie.httpOnly }) } }