From c07984c506f5e8b2f8acfb07832c65d19bbe44a1 Mon Sep 17 00:00:00 2001 From: Artem Anufrij Date: Wed, 21 Feb 2024 21:57:21 +0100 Subject: [PATCH] server.js aktualisiert --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 67b6be6..aa5fa50 100644 --- a/server.js +++ b/server.js @@ -105,7 +105,7 @@ const corsOptions = { callback(null, true); } else { database.system.domains((domains) => { - if (domains.indexOf(origin.replace(/:\d*$/g, "")) !== -1) { + if (config.domain == origin.replace(/:\d*$/g, "") || domains.indexOf(origin.replace(/:\d*$/g, "")) !== -1) { callback(null, true); } else { callback("Origin not allowed: " + origin);