Hello, guys!
I publish an HTML report generated by my tests through Jenkins HTML
Publisher, but the report does not show any css styles. There is an error
in the browser's console:
*Refused to apply inline style because it violates the following Content
Security Policy directive: "style-src 'self'". Either the 'unsafe-inline'
keyword, a hash ('sha256-THOk1r6rC4+HM3k9+2D9L3LsMds3+2crJ1U6Db9rsEk='), or
a nonce ('nonce-...') is required to enable inline execution.*
I tried to change the policy through *Jenkins.xml* both to *style-src
'usafe-inline'* as well as leave the parameter empty at all. The changes
are applied and shown on the System Properties page: screenshot
<https://i.stack.imgur.com/QJSEK.png>but the console still shows the error
and styles are not shown in the report.
I tried to google, but found nothing helpful. I asked on SO in Russian
<https://ru.stackoverflow.com/questions/924984/jenkins-html-publisher-%D0%BD%D0%B5-%D0%BF%D0%BE%D0%BA%D0%B0%D0%B7%D1%8B%D0%B2%D0%B0%D0%B5%D1%82-%D1%81%D1%82%D0%B8%D0%BB%D0%B8-%D1%85%D0%BE%D1%82%D1%8F-%D0%B2-csp-%D0%BE%D0%BD%D0%B8-%D1%80%D0%B0%D0%B7%D1%80%D0%B5%D1%88%D0%B5%D0%BD%D1%8B>and
English
<https://stackoverflow.com/questions/53920282/jenkins-does-not-show-styles-in-html-though-they-are-allowed-in-csp>,
but no one seems to know. Where should I look to figure out what is my
mistake?
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/CACA70iBPEa5Tgd7SueYKRw88BKAwM7bwXHStBH1v%2BCOKX3LP3Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.