You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use HtmlTestRunner for tests that are run on a Jenkins server. The HTML reports can be viewed in Jenkins but the stylesheets do not load, resulting in poorly rendered reports.
The Content Security Policy of Jenkins does not allow inline HTML styles. This can be worked around using the unsafe-inline keyword but the documentation recommends: “avoid using the unsafe-inline keyword in your CSP policy”.
I guess this could be solved with a CSP hash of the style if all the styles appearing in reports were defined in one <style> block and then referred to using attributes like class or id.
The text was updated successfully, but these errors were encountered:
Description
We use HtmlTestRunner for tests that are run on a Jenkins server. The HTML reports can be viewed in Jenkins but the stylesheets do not load, resulting in poorly rendered reports.
The Content Security Policy of Jenkins does not allow inline HTML styles. This can be worked around using the
unsafe-inline
keyword but the documentation recommends: “avoid using theunsafe-inline
keyword in your CSP policy”.I guess this could be solved with a CSP hash of the style if all the styles appearing in reports were defined in one
<style>
block and then referred to using attributes likeclass
orid
.The text was updated successfully, but these errors were encountered: