From c8fa0af1213f037f2e945c0977bd9c41316909d4 Mon Sep 17 00:00:00 2001 From: "Stephane Lacoin (aka nxmatic)" Date: Wed, 10 Jul 2024 21:54:00 +0200 Subject: [PATCH] [fixup] wrong connect host-name in hard-coded forbidden connection --- src/main/server-connector.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/server-connector.js b/src/main/server-connector.js index cb360c3..d5b465b 100644 --- a/src/main/server-connector.js +++ b/src/main/server-connector.js @@ -95,8 +95,8 @@ class ServerConnector extends ServiceWorkerComponent { } connect(serverUrl, tabInfo) { - const forbiddenDomains = ['connect.nuxeo.com', 'nos-preprod-connect.nuxeo.com']; - if (forbiddenDomains.includes(serverUrl.host)) { + const forbiddenDomains = ['connect.nuxeo.com', 'nos-preprod-connect.nuxeocloud.com']; + if (forbiddenDomains.includes(serverUrl.host)) { // should use another way to detect a connect server return Promise.reject(new Error(`Connection to ${serverUrl.host} is forbidden`)); } this.serverUrl = serverUrl;