I am generating code coverage for my rust project and am trying to publish the results to Jenkins using publishHTML
. All good except that when I try to view the HTML the CSS does not load because of this error:
Refused to load the stylesheet 'https://cdn.jsdelivr.net/npm/bulma@0.9.1/css/bulma.min.css' because it violates the following Content Security Policy directive: "default-src 'self'". Note that 'style-src-elem' was not explicitly set, so 'default-src' is used as a fallback.
How do I fix this? I doubt I'm the first person to run into this.
I did have the thought to rewrite the generated HTML to use a local stylesheet, but I ran into weird Access permissions in the Jenkins workspace and I could not get that to work.
This is the command I am using the generate the reports:
grcov . --binary-path workspaces -s . -t html --branch --ignore-not-existing -o ./code_coverage/
I'd appreciate any suggestions on how to fix this or how to better deploy my results.