Jenkins Html Rport 使用frame报错解决办法
对于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:
- Open the Jenkin home page.
- Go to Manage Jenkins.
- Now go to Script Console.
- And in that console paste below statement and click on Run.System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "")
自动化测试交流群:617352502
posted on 2019-08-26 17:57 Vincent.李 阅读(2299) 评论(0) 编辑 收藏 举报