-
Notifications
You must be signed in to change notification settings - Fork 137
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
SonarQube (Enterprise EditionVersion 10.3 --build 82913) Content Security Policy blocking the plugin resource #893
Comments
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
The following change may help you. #765 |
I'm experiencing the same problem also with sonar-dependency-check-plugin-5.0.0 on sonarqube Community Edition 10.3 (build 82913). The report opens in new tab, but buttons still don't work as sonarqube is serving response header with CSP script-src 'self' so inline scripts are blocked. I tried that with Firefox , Chrome and Opera. They all block it (message can be seen in developer console). |
Same for us, issue persists in new tab. |
There is not much I can do here, the whole display of the HTML report is very hacky. |
See releasenotes 10.0 about changes to security: https://docs.sonarsource.com/sonarqube/latest/setup-and-upgrade/release-upgrade-notes/#release-10.0-upgrade-notes And this page with help regarding pages: https://docs.sonarsource.com/sonarqube/latest/extension-guide/developing-a-plugin/adding-pages-to-the-webapp/ It might help you? |
Unfortunately not, because the complete HTML file with inline script comes from dependency-check. |
Describe the bug
We are currently using SonarQube Enterprise Edition Version 10.3. We are encountering an issue when integrating Dependency-Check reports using dependency-check Sonarqube plugin v4.0.0.
The report HTML file, which utilizes inline scripting, is blocked by CSP when we attempt to click on links and buttons to view dynamic content generated by scripting. The content of the overview is already present, but it cannot load or activate the appropriate elements dynamically due to CSP (content security policy) in SonarQube 10.3.
To Reproduce
Steps to reproduce the behavior:
Current behavior
Integrated HTML overview of the dependencies is shown on the Dashboard SonarQube. But it is not possible to click on any links and buttons
Expected behavior
Integrated HTML overview of the dependencies must be shown on the Dashboard SonarQube.
And it must be possible to click on any links and buttons in this overview
Screenshots
![image](https://private-user-images.githubusercontent.com/136718055/290282263-4127b1d4-f78e-427c-89fc-602d1986765d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNjc4NTcsIm5iZiI6MTczOTM2NzU1NywicGF0aCI6Ii8xMzY3MTgwNTUvMjkwMjgyMjYzLTQxMjdiMWQ0LWY3OGUtNDI3Yy04OWZjLTYwMmQxOTg2NzY1ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMlQxMzM5MTdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iNmU5YzA1YTNkNDExZjdhMTAyYjJmZWYyYmU5ZWY5ZmMyYjYzYzVjYzY4NzQyZmQwNjNhMzFiMThkYTFhYTg5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.lDvQa3S4L0yrQSVI6j17pgNpsRN_f5VlCZNf2rpqMm0)
Versions (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: