Jenkins error - Blocked script execution in . because the document's frame is sandboxed and the 'allow-scripts' permission is not set

后端 未结 6 1489
刺人心
刺人心 2020-12-02 10:35

I\'m aware that if we use a iFrame in HTML we\'ve to sandbox it & add the \'allow-scripts\' permission to be true.

But my problem is I don\'t have a iFrame at all

6条回答
  •  无人及你
    2020-12-02 11:18

    For Jenkins hosted on Ubuntu:

    1. put to /etc/default/jenkins

      JAVA_ARGS="${JAVA_ARGS} -Dhudson.model.DirectoryBrowserSupport.CSP=\"\" "
      
    2. visit http:///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.

提交回复
热议问题