From a78cb28ef15a71a08ea3327a99cd9db93c0ab109 Mon Sep 17 00:00:00 2001 From: VolodymyrK Date: Wed, 29 May 2024 13:01:18 +0200 Subject: [PATCH] fix: Fix ws connection establishement --- server/src/api.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/src/api.ts b/server/src/api.ts index 05050ee..a857e5b 100644 --- a/server/src/api.ts +++ b/server/src/api.ts @@ -46,6 +46,11 @@ async function main() { headers: { authorization: config.csprCloudAccessKey, }, + on: { + proxyReqWs: (proxyReq) => { + proxyReq.removeHeader('Origin'); + }, + } }); app.get('/deploys', csprCloudStreamingProxy);