Skip to content

Commit

Permalink
feat(server): update csp for embedding the libro iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshinesmilelk committed Nov 15, 2024
1 parent 60bde60 commit 55e2153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbgpt/serve/libro/service/jupyter_server_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# 为了 dbgpt 页面能 iframe 能正确加载显示 libro 页面
c.ServerApp.tornado_settings = {
"headers": {
"Content-Security-Policy": "frame-ancestors 'self' http://localhost:3001"
"Content-Security-Policy": "frame-ancestors 'self' *"
}
}
# 默认启动 libro 不自动打开新的页面
Expand Down

0 comments on commit 55e2153

Please sign in to comment.