Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
skmpowdjy opened this issue Oct 3, 2023 · 1 comment
Open

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

skmpowdjy opened this issue Oct 3, 2023 · 1 comment
Assignees
Labels
Bug Bug issue type S: postponed Status: work on the issue is not in the short term plans

Comments

@skmpowdjy
Copy link

skmpowdjy commented Oct 3, 2023

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 skmpowdjy added Bug Bug issue type S: untriaged Status: issue reported but unprocessed labels Oct 3, 2023
@shanshin shanshin added S: postponed Status: work on the issue is not in the short term plans and removed S: untriaged Status: issue reported but unprocessed labels Oct 11, 2023
@shanshin
Copy link
Collaborator

Relates #272

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug issue type S: postponed Status: work on the issue is not in the short term plans
Projects
None yet
Development

No branches or pull requests

2 participants