Hi Team,
We successfully embeded Jupyter Retro Lab onto our web page in our web based application, with following config.
c.ServerApp.tornado_settings = {
"headers": {
"Content-Security-Policy": "frame-ancestors 'self' *",
"Access-Control-Allow-Origin": "http://locahost:8888",
}
}
But when we place the app UI build inside our electron-based desktop application, the jupyter notebook URL is not rendering and giving the error:
Refused to frame 'http://localhost:8888/' because an ancestor violates the following 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.
Please help / suggest some remedy.