[dev] Allow all WS connections locally (#3707)

This commit is contained in:
Alexander Zinchuk 2023-08-14 11:17:35 +02:00
parent 65c0ef329a
commit aa120959e6

View File

@ -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 : ''};