Skip to content

Commit

Permalink
[fixup] wrong connect host-name in hard-coded forbidden connection
Browse files Browse the repository at this point in the history
  • Loading branch information
nxmatic committed Jul 10, 2024
1 parent 8e9f46f commit c8fa0af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/server-connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c8fa0af

Please sign in to comment.