mirror of
https://github.com/grafana/grafana.git
synced 2024-12-29 10:21:41 -06:00
HTTPServer: Fix X-XSS-Protection header formatting (#17620)
Fixes #17619
This commit is contained in:
parent
64841fe417
commit
ed613194ac
@ -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…
Reference in New Issue
Block a user