Skip to content

Commit 2b06c9f

Browse files
authored
Patch paraview websocket (#915)
patch paraview websocket
1 parent 06509a9 commit 2b06c9f

File tree

1 file changed

+1
-0
lines changed
  • services/web/server/src/simcore_service_webserver/reverse_proxy/handlers

1 file changed

+1
-0
lines changed

services/web/server/src/simcore_service_webserver/reverse_proxy/handlers/paraview.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ async def handle_web_request(request: web.Request, target_url: URL, mount_point:
7070
del headers['content-length']
7171
body = await res.read()
7272
if proxy_path == 'Visualizer.js':
73+
body = body.replace(b'"https"===window.location.protocol', b'window.location.protocol.startsWith("https")')
7374
body = body.replace(b'"/ws"', b'"%s/ws"' %
7475
mount_point.encode(), 1)
7576
body = body.replace(

0 commit comments

Comments
 (0)