From 0bb3b464f970da434af2de85ee2f33d0b5a95e7c Mon Sep 17 00:00:00 2001 From: Munir Khakhi Date: Fri, 16 Jun 2017 15:28:09 +0530 Subject: [PATCH] add x-arr-ssl check --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index 8db4eca3..d68f8faf 100644 --- a/index.js +++ b/index.js @@ -607,6 +607,10 @@ function issecure(req, trustProxy) { return false; } + if (req.headers['x-arr-ssl']) { + return true; + } + // no explicit trust; try req.secure from express if (trustProxy !== true) { var secure = req.secure;