From 44187bc316104bf0eb22bfd7b12769df46fa5758 Mon Sep 17 00:00:00 2001 From: Martin Berka Date: Mon, 4 Mar 2024 23:33:22 +0100 Subject: [PATCH] =?UTF-8?q?Oprava=20vyhodnocen=C3=AD=20nastaven=C3=AD=20tr?= =?UTF-8?q?usted=20headers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/index.ts b/server/src/index.ts index 7326459..51c8721 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -32,7 +32,7 @@ app.use(cors({ })); // Zapínatelný login přes hlavičky - pokud je zapnutý nepovolí "basicauth" -const HTTP_REMOTE_USER_ENABLED = process.env.HTTP_REMOTE_USER_ENABLED || false; +const HTTP_REMOTE_USER_ENABLED = process.env.HTTP_REMOTE_USER_ENABLED === 'true' || false; const HTTP_REMOTE_USER_HEADER_NAME = process.env.HTTP_REMOTE_USER_HEADER_NAME || 'remote-user'; if (HTTP_REMOTE_USER_ENABLED) { if (!process.env.HTTP_REMOTE_TRUSTED_IPS) {