From b9bf910e0fb378331cd3aa4e1646a0a7192d06d0 Mon Sep 17 00:00:00 2001 From: Remy Sharp Date: Sat, 13 May 2017 15:05:12 +0100 Subject: [PATCH] chore: revert old cookie tweak --- lib/app.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/app.js b/lib/app.js index 9c273a57..ab9b6b96 100644 --- a/lib/app.js +++ b/lib/app.js @@ -251,7 +251,6 @@ app.connect = function (callback) { app.use(cookieSession({ keys: ['jsbin'], cookie: { - secure: false, // allows cookie to be exchanged across http + https on purpose maxAge: 365 * 24 * 60 * 60 * 1000, // the domain must contain a dot and should not have a port domain: app.get('url host').indexOf('.') === -1 ? undefined : '.' + app.get('url host').replace(/:\d+$/, '')