HTTPServer: Fix X-XSS-Protection header formatting (#17620)
Fixes #17619
(cherry picked from commit ed613194ac)
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user