Jenkins Html Rport 使用frame报错解决办法

错误

Blocked script execution in '<URL>' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.

解决

这种报错,可以通过设置jenkins 的CSP 变量解决

1、jenkins主页
2、进入Manage Jenkins
3、进入Script Console
4、然后在控制台粘贴下面的语句中,点击Run

System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "")
posted @ 2021-08-02 13:55  左岸丶  阅读(1709)  评论(0编辑  收藏  举报