Jenkins Html Rport 使用frame報錯解決辦法

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

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.ip

這種報錯,能夠經過設置jenkins 的CSP 變量解決ci

Step:jenkins

  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", "")
相關文章
相關標籤/搜索