HTTPServer: Fix X-XSS-Protection header formatting (#17620)

Fixes #17619
This commit is contained in:
Yann Verry
2019-06-17 23:46:35 +02:00
committed by Marcus Efraimsson
parent 64841fe417
commit ed613194ac
+1 -2
View File
@@ -270,8 +270,7 @@ func AddSecurityHeaders(w macaron.ResponseWriter) {
}
if setting.XSSProtectionHeader {
w.Header().Add("X-XSS-Protection", "1")
w.Header().Add("X-XSS-Protection", "mode=block")
w.Header().Add("X-XSS-Protection", "1; mode=block")
}
}