From 4ecd7867b058091e6361d9f6427100c26b520ee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Y=C3=BBki=20Vachot?= Date: Sun, 6 Jun 2021 14:48:04 +0200 Subject: [PATCH] Update auth.js --- backend/service-privateroom/auth.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/service-privateroom/auth.js b/backend/service-privateroom/auth.js index c50c02f..f74b970 100644 --- a/backend/service-privateroom/auth.js +++ b/backend/service-privateroom/auth.js @@ -4,10 +4,10 @@ function getSession (req, callback) { if(typeof req.headers.cookie !== 'undefined'){ request.post({ headers: {'content-type' : 'application/x-www-form-urlencoded'}, - url: 'http://127.0.0.1:3000/verify:token', + url: 'http://service-authentication:3000/verify:token', body: 'sessionid='+req.headers.cookie.replace('SESSIONID=','') },function (error, response, body) { - console.log("body ; getSession auth private :",body); + //console.log("body ; getSession auth private :",body); if(typeof body !== 'undefined'){ const bodyJson = JSON.parse(body); if (bodyJson && bodyJson.status && bodyJson.data) {