Python 错误:";内容安全策略指令:“;框架祖先';自我'&引用;尝试在Jupyter笔记本中创建iframe时
我得到一个错误:Python 错误:";内容安全策略指令:“;框架祖先';自我'&引用;尝试在Jupyter笔记本中创建iframe时,python,iframe,jupyter-notebook,jupyter,jupyter-lab,Python,Iframe,Jupyter Notebook,Jupyter,Jupyter Lab,我得到一个错误: Refused to frame 'http://localhost:8888/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self'". 尝试从包含另一个本地HTML文件的iframe的本地HTML文件创建iframe时 例如测试outer.html: 使用Jupyter笔记本Python代码: fr
Refused to frame 'http://localhost:8888/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self'".
尝试从包含另一个本地HTML文件的iframe的本地HTML文件创建iframe时
例如测试outer.html
:
使用Jupyter笔记本Python代码:
from IPython.display import IFrame
IFrame(src='test-outer.html', width=200, height=200)
test-inner.html
可以包含任何内容
测试outer.html
在单独的浏览器选项卡上完全加载。问题是将其加载到Jupyter笔记本中。