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

Fixes #17619

(cherry picked from commit ed613194ac)
This commit is contained in:
Yann Verry
2019-06-18 11:39:19 +01:00
committed by gotjosh
parent 8a30e47aa4
commit 3232ea4552
+1 -2
View File
@@ -266,8 +266,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")
}
}