diff options
author | lukasz-jarocki-sonarsource <lukasz.jarocki@sonarsource.com> | 2024-09-12 16:10:38 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-09-13 20:02:35 +0000 |
commit | daf512d755a7c23a426b297ff7a43b57b33048f3 (patch) | |
tree | 7fed61796ab0f55fdbd22bbaecbbb4d65b5d3c19 /server/sonar-webserver/src/main | |
parent | 4aa45bbc641827cf55b1c01170a405f2d73c1182 (diff) | |
download | sonarqube-daf512d755a7c23a426b297ff7a43b57b33048f3.tar.gz sonarqube-daf512d755a7c23a426b297ff7a43b57b33048f3.zip |
SONAR-23029 fix ssf
Diffstat (limited to 'server/sonar-webserver/src/main')
-rw-r--r-- | server/sonar-webserver/src/main/java/org/sonar/server/platform/web/SecurityServletFilter.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-webserver/src/main/java/org/sonar/server/platform/web/SecurityServletFilter.java b/server/sonar-webserver/src/main/java/org/sonar/server/platform/web/SecurityServletFilter.java index afb7332af2c..ce0687a7011 100644 --- a/server/sonar-webserver/src/main/java/org/sonar/server/platform/web/SecurityServletFilter.java +++ b/server/sonar-webserver/src/main/java/org/sonar/server/platform/web/SecurityServletFilter.java @@ -83,11 +83,11 @@ public class SecurityServletFilter implements Filter { } // Cross-site scripting - // See https://www.owasp.org/index.php/List_of_useful_HTTP_headers - httpResponse.setHeader("X-XSS-Protection", "1; mode=block"); + // See https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Headers_Cheat_Sheet.html#x-xss-protection + httpResponse.setHeader("X-XSS-Protection", "0"); // MIME-sniffing - // See https://www.owasp.org/index.php/List_of_useful_HTTP_headers + // See https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Headers_Cheat_Sheet.html#x-content-type-options httpResponse.setHeader("X-Content-Type-Options", "nosniff"); } |