Last active
January 21, 2022 20:43
-
-
Save matthiasbaldi/313c89b7e4935d64637391a9d8d3b27a to your computer and use it in GitHub Desktop.
Deactivate Jenkins Content Security Policy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://wiki.jenkins-ci.org/display/JENKINS/Configuring+Content+Security+Policy | |
// this line of code you can enter in your script console jenkinsserver.io/script | |
System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "") | |
// or perisistent with this start param | |
-Dhudson.model.DirectoryBrowserSupport.CSP="default-src 'self'; script-src '*'; connect-src '*'; img-src '*'; style-src '*';" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment