kotlinx-kover icon indicating copy to clipboard operation
kotlinx-kover copied to clipboard

CSS does not load in Chrome when HTML report is hosted

Open skmpowdjy opened this issue 2 years ago • 1 comments

Describe the bug After creating a Kover HTML report, we host it on our build server for later viewing. However, Chrome is blocking the CSS from loading when it is opened from this hosted location.

Errors

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-8EpQVk5wr2+8kqUUsnmqEFhEfR2/zDth+L/PopUdkMo='), or a nonce ('nonce-...') is required to enable inline execution. Screenshot 2023-10-03 at 12 00 30 PM Screenshot 2023-10-03 at 12 01 30 PM

Expected behavior CSS is able to be loaded when viewing the HTML page.

Environment

  • Kover Gradle Plugin version: 0.7.3
  • Gradle version: 8.0
  • Kotlin project type: Kotlin/Android
  • Coverage Toolset (if customized in build script): Kover
  • Other context important for this bug: Google Chrome 116.0.5845.187

skmpowdjy avatar Oct 03 '23 17:10 skmpowdjy

Relates #272

shanshin avatar Oct 11 '23 13:10 shanshin