Security tweak required for BDD error report image display on Jenkins 2.7.2
...
Jenkins URL (Azure VM) : httphttps://build-hee-tis-jenkinsmain.westeurope.cloudapp.azure.com:9090transformcloud.net/jenkins/script
System.setProperty("hudson.model.DirectoryBrowserSupport.class.getName() + ".CSP", "sandbox; script-src 'unsafe-inline' 'self'; connect")
System.setProperty("jenkins.model.DirectoryBrowserSupport.CSP", "default-src 'self'; imgscript-src 'self' data:' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline';")
NOTE : The web browser refresh does not always reload the page with the new relaxed rules due to caching. To be sure this doesn't happen it's advised to restart your browser.
If this needs to be reset to default (more secure) the run the following command : System.clearProperty("hudson.model.DirectoryBrowserSupport.CSP")