Button 'render with voila' - connection refused

Hello,

I solved my problem. The root cause was:

Refused to frame ‘https://:8080/’ because an ancestor violates the following Content Security Policy directive: “frame-ancestors ‘none’”.

That message was logged in browser console. Somehow I skip that before you asked for.

So solution for me:

c.JupyterHub.tornado_settings = {'headers': {'Content-Security-Policy': "frame-ancestors *;"}}
c.Spawner.args = [
    '--VoilaConfiguration.enable_nbextensions=True',
    "--VoilaConfiguration.file_whitelist=['.*']",
    '--NotebookApp.tornado_settings={"headers":{"Content-Security-Policy": "frame-ancestors *;"}}']
2 Likes