Websocket connection failed while integrating jupyterlab inside a iframe angular project

I have a angular project and my jupyter lab server is running on a remote machine.
I tried to integrate jupyterlab using iframe in the project. But it gives me websocket connection failed error.

My jupyter_lab_config.py changes are -

c.ServerApp.allow_origin = ‘*’
c.ServerApp.allow_remote_access = True
c.ServerApp.disable_check_xsrf=True
c.ServerApp.tornado_settings = { ‘headers’: {‘Content-Security-Policy’: “frame-ancestors ‘self’ http://127.0.0.1:8080”}}
c.ServerApp.token = ‘123456’

1 Like

Hi @vinit25254,

Were you able to resolve this problem? I am also facing similar issue with websocket communication (secure mode- wss).