Friday, 16 September 2016

How To Allow Jenkins To Publish ExtentReport Or Any Html Based Report Compromising Security

By default, Jenkins latest version displays Extent Report in normal text, as Extent Report contains scripts which pose threat to web security.

To overcome the problem, we have to override property - hudson.model.DirectoryBrowserSupport.CSP

Following way of overriding solves the problem-
java -Dhudson.model.DirectoryBrowserSupport.CSP="" -jar jenkins.war

1 comment:

  1. Thank you Debasish for this post, this saved me Today :)

    ReplyDelete