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 的主要内容,如果未能解决你的问题,请参考以下文章