console log headers

pull/1644/head
Sergei Meza 2022-10-18 16:47:43 +09:00
parent 29ea1ec253
commit 89e2443266
1 changed files with 2 additions and 0 deletions

View File

@ -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);