Skip to content

Commit 4b53164

Browse files
committed
allow iframe embedded
1 parent 1a30ade commit 4b53164

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

r-base/service-defs/jupyter.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"c.NotebookApp.allow_root = True\n",
88
"c.NotebookApp.ip = \"0.0.0.0\"\n",
99
"c.NotebookApp.port = {ports[0]}\n",
10+
"c.ContentsManager.files_handler_class = None\n",
1011
"c.NotebookApp.token = \"\"\n",
1112
"c.FileContentsManager.delete_to_trash = False\n"
1213
]

r-base/service-defs/jupyterlab.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
"c.NotebookApp.ip = \"0.0.0.0\"\n",
99
"c.NotebookApp.port = {ports[0]}\n",
1010
"c.NotebookApp.token = \"\"\n",
11-
"c.FileContentsManager.delete_to_trash = False\n"
11+
"c.FileContentsManager.delete_to_trash = False\n",
12+
"c.NotebookApp.tornado_settings = {{'headers': {{'Content-Security-Policy': \"frame-ancestors * 'self' \"}}}}\n",
13+
"c.JupyterHub.tornado_settings = {{'headers': {{'Content-Security-Policy': \"frame-ancestors * 'self' \"}}}}\n"
1214
]
1315
},
1416
"ref": "jupyter_cfg"

0 commit comments

Comments
 (0)