From 5bbd3a906ad32e0a0d31b84b7cf93f00524aa82b Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Sat, 9 Dec 2023 20:47:20 +0800 Subject: [PATCH] Fix --- backend/dockge-server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/dockge-server.ts b/backend/dockge-server.ts index c6c9526..0833efd 100644 --- a/backend/dockge-server.ts +++ b/backend/dockge-server.ts @@ -209,7 +209,7 @@ export class DockgeServer { try { let originURL = new URL(origin); - if (host !== originURL.hostname) { + if (host !== originURL.host) { isOriginValid = false; log.error("auth", `Origin (${origin}) does not match host (${host}), IP: ${req.socket.remoteAddress}`); }