From 89e24432667302a37ac2f7b7dc119fb9d989cfd2 Mon Sep 17 00:00:00 2001 From: Sergei Meza Date: Tue, 18 Oct 2022 16:47:43 +0900 Subject: [PATCH] console log headers --- lib/session.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/session.js b/lib/session.js index 913b0927..aaaeecd3 100644 --- a/lib/session.js +++ b/lib/session.js @@ -49,6 +49,8 @@ export async function getSession(req) { // const ip = req.headers['x-forwarded-for'] || req.connection.remoteAddress; const { userAgent, browser, os, ip, country, device } = await getClientInfo(req, payload); + console.log('headers:', JSON.stringify(req.headers)); + console.log('ip:', ip); let session_uuid = uuid(websiteId, hostname, ip, userAgent);