From aa120959e670f769f0e7b286e716851a0bef70fe Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Mon, 14 Aug 2023 11:17:35 +0200 Subject: [PATCH] [dev] Allow all WS connections locally (#3707) --- webpack.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.ts b/webpack.config.ts index 40b41a8e5..c36d1044c 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -37,7 +37,7 @@ const { const CSP = ` default-src 'self'; - connect-src 'self' wss://*.web.telegram.org blob: http: https:; + connect-src 'self' wss://*.web.telegram.org blob: http: https: ${APP_ENV === 'development' ? 'wss:' : ''}; script-src 'self' 'wasm-unsafe-eval' https://t.me/_websync_ https://telegram.me/_websync_; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: https://ss3.4sqi.net/img/categories_v2/ ${IS_ELECTRON ? BASE_URL : ''};