Skip to content

Generated html reports can't be loaded properly because of CSP #173

Open
@amalinko

Description

@amalinko

First of all, thank you guys for great plugin.
But we have a problem. I'm not sure if it could be changed or it is absolutely by design.
We've updated our Jenkins and new version uses CSP. And Scoverage generates HTML with external sources. For example:
https://github.com/scoverage/scalac-scoverage-plugin/blob/master/scalac-scoverage-plugin/src/main/resources/scoverage/index.html
It has <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/pure/0.3.0/pure-min.css"> in it. So this style can't be loaded, because it is external resource.
While CSP in Jenkins could be configured, it's not very convenient because either we have to find all sources Scoverage uses or to switch the policy off completely. Is it possible to make Scoverage reports CSP compatible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions