首页 > Web开发 > 详细

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

时间:2019-08-26 18:52:46      阅读:273      评论:0      收藏:0      [点我收藏+]

技术分享图片

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

Refused to frame ‘http://10.62.100.30:8888/‘ because it violates the following Content Security Policy directive: "default-src ‘none‘". Note that ‘frame-src‘ was not explicitly set, so ‘default-src‘ is used as a fallback.

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

Step:

  1. Open the Jenkin home page.
  2. Go to Manage Jenkins.
  3. Now go to Script Console.
  4. And in that console paste below statement and click on Run.System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "")

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

原文:https://www.cnblogs.com/vincent-li666/p/11414009.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!