From 19114ea3a097066175ace10cc207f4b74eb44d13 Mon Sep 17 00:00:00 2001 From: Alexis Tyler Date: Thu, 8 Jul 2021 09:19:57 +0930 Subject: [PATCH] fix: update hash var --- app/server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/server.ts b/app/server.ts index fa0acdb90..856de40d2 100644 --- a/app/server.ts +++ b/app/server.ts @@ -103,10 +103,10 @@ const getAllowedOrigins = (): string[] => { `https://${serverName}.${localTld}${webuiHTTPSPort ? `:${webuiHTTPSPort}` : ''}`, // Hash - ...(hash ? [`https://${hash}${webuiHTTPSPort ? `:${webuiHTTPSPort}` : ''}`] : []), + ...(cert.hash ? [`https://${hash}${webuiHTTPSPort ? `:${webuiHTTPSPort}` : ''}`] : []), // Wan hash - ...(hash && wanAccessEnabled ? [`https://www.${hash}${wanHTTPSPort ? `:${wanHTTPSPort}` : ''}`] : []), + ...(cert.hash && wanAccessEnabled ? [`https://www.${hash}${wanHTTPSPort ? `:${wanHTTPSPort}` : ''}`] : []), // Notifier bridge '/var/run/unraid-notifications.sock',