Jenkins Html Rport 使用frame报错解决办法
生活随笔
收集整理的這篇文章主要介紹了
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", "")
總結
以上是生活随笔為你收集整理的Jenkins Html Rport 使用frame报错解决办法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: http协议组成
- 下一篇: Docker-Bridge Networ