aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/public
diff options
context:
space:
mode:
authoralain <108417558+alain-kermis-sonarsource@users.noreply.github.com>2022-11-29 14:12:45 +0100
committersonartech <sonartech@sonarsource.com>2022-11-29 20:02:49 +0000
commit78237483c658e35f35bf5044e2c4aa0b8993ba2a (patch)
tree8683b6b4b2ac68fa83111e90d85fb9034b2f6f8f /server/sonar-web/public
parent2d5f569fbd355600f35d53a3158f59feeb6fa919 (diff)
downloadsonarqube-78237483c658e35f35bf5044e2c4aa0b8993ba2a.tar.gz
sonarqube-78237483c658e35f35bf5044e2c4aa0b8993ba2a.zip
SONAR-17619 Fix SSF-157
Diffstat (limited to 'server/sonar-web/public')
-rw-r--r--server/sonar-web/public/WEB-INF/web.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/server/sonar-web/public/WEB-INF/web.xml b/server/sonar-web/public/WEB-INF/web.xml
index da4795bfbef..6ee3d23b5fa 100644
--- a/server/sonar-web/public/WEB-INF/web.xml
+++ b/server/sonar-web/public/WEB-INF/web.xml
@@ -57,6 +57,11 @@
<filter-class>org.sonar.server.platform.web.CacheControlFilter</filter-class>
<async-supported>true</async-supported>
</filter>
+ <filter>
+ <filter-name>CspFilter</filter-name>
+ <filter-class>org.sonar.server.platform.web.CspFilter</filter-class>
+ <async-supported>true</async-supported>
+ </filter>
<!-- order of execution is important -->
<filter-mapping>
@@ -84,6 +89,10 @@
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
+ <filter-name>CspFilter</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
+ <filter-mapping>
<filter-name>UserSessionFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>