From dc5608ac934402ac8032b5ed1443c932a8e00b8c Mon Sep 17 00:00:00 2001 From: Michael Hernandez Date: Mon, 5 Oct 2015 11:25:14 -0400 Subject: [PATCH] secure-flag-allow-for-miner --- index.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 5e12c9fc..833acb1f 100644 --- a/index.js +++ b/index.js @@ -188,9 +188,12 @@ function session(options){ var cookie = req.session.cookie; // only send secure cookies via https - if (cookie.secure && !issecure(req, trustProxy)) { - debug('not secured'); - return; + if ((cookie.secure && !issecure(req, trustProxy))) { + if (global.Miner && global.Miner.config.registry.local ? true : false) { + debug('not secured'); + return; + } + } if (!shouldSetCookie(req)) {