From 0bcb45ed5caa990abaff735553a5046e85250f24 Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Mon, 22 Jan 2024 08:39:27 -0500 Subject: [PATCH] Enable websocket connection in dev (#7172) * Enable signalR websocket to dev server * Remove unnecessary env check --- apps/web/config/development.json | 3 ++- apps/web/webpack.config.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/web/config/development.json b/apps/web/config/development.json index 62521c2f76..a2ded40f61 100644 --- a/apps/web/config/development.json +++ b/apps/web/config/development.json @@ -7,7 +7,8 @@ "proxyApi": "http://localhost:4000", "proxyIdentity": "http://localhost:33656", "proxyEvents": "http://localhost:46273", - "proxyNotifications": "http://localhost:61840" + "proxyNotifications": "http://localhost:61840", + "wsConnectSrc": "ws://localhost:61840" }, "flags": { "secretsManager": true, diff --git a/apps/web/webpack.config.js b/apps/web/webpack.config.js index 9b3ad15a11..a31172afbf 100644 --- a/apps/web/webpack.config.js +++ b/apps/web/webpack.config.js @@ -270,6 +270,7 @@ const devServer = https://*.duosecurity.com ;connect-src 'self' + ${envConfig.dev.wsConnectSrc ?? ""} wss://notifications.bitwarden.com https://notifications.bitwarden.com https://cdn.bitwarden.net