Jenkins: because the document's frame is sandboxed and the 'allow-scripts' permission

Posted i舒

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Jenkins: because the document's frame is sandboxed and the 'allow-scripts' permission 相关的知识,希望对你有一定的参考价值。

because the document\'s frame is sandboxed and the \'allow-scripts\' permission is not set

 

For Jenkins hosted on Ubuntu:

  1. put to /etc/default/jenkins

    JAVA_ARGS="${JAVA_ARGS} -Dhudson.model.DirectoryBrowserSupport.CSP=\\"\\" "
    
  2. visit http://<your jenkins hostname>/safeRestart

(about this and other options: https://wiki.jenkins.io/display/JENKINS/Features+controlled+by+system+properties)

UPD: this time when I did this the visiting /safeRestart was not enough. I had to do sudo service jenkins restart.

 

 

https://stackoverflow.com/questions/34315723/jenkins-error-blocked-script-execution-in-url-because-the-documents-frame

以上是关于Jenkins: because the document's frame is sandboxed and the 'allow-scripts' permission 的主要内容,如果未能解决你的问题,请参考以下文章

github每次创建新的项目都各种报错Updates were rejected because the remote contains work that you do

connectify序列号输进去后出现couldn not accept license key because the license was not valid怎么办

Job for docker.service failed because the control process exited with error

Swift:Errors thrown from here are not handled because the enclosing catch is not exhaustive

Swift:Errors thrown from here are not handled because the enclosing catch is not exhaustive

The resource could not be loaded because the App Transport