feat(desktop): proxy realtime requests with runtime headers

This commit is contained in:
Bohdan Triapitsyn
2026-06-30 01:21:42 +03:00
parent 359c73fcf3
commit c10930dfd0
9 changed files with 724 additions and 7 deletions
@@ -295,6 +295,7 @@ const isUrlAuthReadableHttpPath = (pathname) => {
return pathname === '/api/event'
|| pathname === '/api/global/event'
|| pathname === '/api/openchamber/events'
|| pathname === '/api/openchamber/realtime-proxy/sse'
|| pathname === '/api/notifications/stream'
|| pathname === '/api/fs/raw'
|| pathname === '/api/fs/serve'
@@ -307,6 +308,7 @@ const isUrlAuthReadableHttpPath = (pathname) => {
const isUrlAuthWebSocketPath = (pathname) => {
return pathname === '/api/event/ws'
|| pathname === '/api/global/event/ws'
|| pathname === '/api/openchamber/realtime-proxy/ws'
|| pathname === '/api/terminal/ws'
|| pathname.startsWith('/api/preview/proxy/');
};