Mor Lajb
Mor Lajb

Reputation: 2636

update Jenkins security settings

I update Jenkins security settings to support allure report

System.setProperty(“hudson.model.DirectoryBrowserSupport.CSP", "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline';")

it works fine ,now I need to add

System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "sandbox allow-scripts;")

for HTML report

how can I combine both settings into 1 ?

Thanks , Mor

Upvotes: 1

Views: 170

Answers (1)

Mor Lajb
Mor Lajb

Reputation: 2636

looks like this one

System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "default-src 'none'; img-src 'self'; style-src 'self'; child-src 'self'; frame-src 'self';")

do the trick

Upvotes: 1

Related Questions