Kotlin / kotlinx-kover

Apache License 2.0
1.35k stars 53 forks source link

CSS does not load in Chrome when HTML report is hosted #475

Open skmpowdjy opened 1 year ago

skmpowdjy commented 1 year ago

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

shanshin commented 12 months ago

Relates #272