Hello, I want to embed a jupyterlab page into my application using an iframe.
Therefore, I start the jupyter service with the following command:
jupyter-lab --ServerApp.tornado_settings=“{‘headers’: {‘Content-Security-Policy’: 'frame-ancestors http: "self" *}}” --no-browser
It works fine on windows systems, but will report errors on mac systems:
Refused to frame:‘http://localhost:8888/’ because an ancestor violates thefollowing Content Security Policy directive:"frame-ancestors ".Note that '‘matches only URLs with network schemes (‘http’,‘https’,‘ws’,wss’),or URLs whose scheme matches self`'s scheme.The scheme ‘http:’ must be added explicitly.
Could you offer some suggestions to solve this problem?