Skip to content

Commit f67fbc8

Browse files
web: Remove deprecated X-XSS-Protection
Remove the X-XSS-Protection header. It's deprecated and can apparently cause security issues. See mastodon/mastodon#17289 And https://github.com/xsleaks/xsleaks/wiki/Links#annex-xss-filters-information-leaks
1 parent 9da8943 commit f67fbc8

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

salt/files/server/web/common/nginx/includes/headers_common

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,13 @@ add_header X-Frame-Options SAMEORIGIN always;
1919
# Enable Cross-Domain policies only from the server root
2020
add_header X-Permitted-Cross-Domain-Policies master-only always;
2121

22-
# Enable XSS protection
23-
add_header X-XSS-Protection "1; mode=block" always;
22+
## Enable XSS protection
23+
#add_header X-XSS-Protection "1; mode=block" always;
24+
#
25+
# This is deprecated and can actually introduce security issues.
26+
#
27+
# See https://github.com/mastodon/mastodon/pull/17289
28+
# And https://github.com/xsleaks/xsleaks/wiki/Links#annex-xss-filters-information-leaks
2429

2530
# Don't share referrer on downgrade, minimize it on different domains
2631
add_header Referrer-Policy "strict-origin-when-cross-origin" always;

0 commit comments

Comments
 (0)