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

Fixes #17619
pull/17624/head
Yann Verry 6 years ago committed by Marcus Efraimsson
parent 64841fe417
commit ed613194ac
  1. 3
      pkg/middleware/middleware.go

@ -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")
}
}

Loading…
Cancel
Save