Security tweak required for BDD error report image display on Jenkins 2.7.2
Ref: https://content-security-policy.com/ and https://wiki.jenkins-ci.org/display/JENKINS/Configuring+Content+Security+Policy
Logging in with user that has admin rights:-
Jenkins URL (AWS EC2) : http://ec2-52-17-13-23.eu-west-1.compute.amazonaws.com:9090/script
Jenkins URL (Azure VM) : http://hee-tis-jenkinsmain.westeurope.cloudapp.azure.com:9090/script
System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "sandbox; script-src 'self'; connect-src 'self'; img-src 'self' data:; style-src 'self';")
If this needs to be reset to default (more secure) the run the following command : System.clearProperty("hudson.model.DirectoryBrowserSupport.CSP")
Add Comment