kotlinx-kover
kotlinx-kover copied to clipboard
CSS does not load in Chrome when HTML report is hosted
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.
![]()
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
Relates #272