Re: HTML pages as archived artifacts

2023-01-16 Thread 'Daniel Beck' via Jenkins Users
On Mon, Jan 16, 2023 at 10:00 AM geoffroy...@gmail.com <
geoffroy.jabou...@gmail.com> wrote:

> you need to relax CSP rules for proper display, as mentioned by Xavier.
>

The recommended alternative for more than three years is to configure the
resource root URL as explained on
https://www.jenkins.io/doc/book/security/user-content/#resource-root-url

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAMo7Pt%2BZF1E4%2BJqEewS8DDB5VpOyt7dDQeUbUVrd%2BE2wh%3DMDEQ%40mail.gmail.com.


Re: HTML pages as archived artifacts

2023-01-16 Thread geoffroy...@gmail.com
Hello

I confirm that the publishHTML plugin will provide you with the needed 
feature. And also that you need to relax CSP rules for proper display, as 
mentioned by Xavier.

we use an init.groovy.d script 

 
to configure CSP (Content Security Policy) at Jenkins startup:

System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "sandbox 
allow-scripts allow-same-origin ; default-src 'self' ; img-src 'self' data: 
; style-src 'self' 'unsafe-inline' data: ; script-src 'self' 
'unsafe-inline' 'unsafe-eval' ;")

Might be a bit permissive, but at least generated HTML docs using doxygen, 
mkdocs, ... with custom CSS are properly displaying from the publishHTML 
plugin.

Regards

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9fb0a088-3fa0-4fed-b8d7-85bd0db3e44cn%40googlegroups.com.