fix: update hash var

This commit is contained in:
Alexis Tyler
2021-07-08 09:19:57 +09:30
parent 6862885c5c
commit 19114ea3a0

View File

@@ -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',