Skip to content

Commit

Permalink
Remove quotes for XSS Protection Header (minio#5992)
Browse files Browse the repository at this point in the history
  • Loading branch information
Colhodm authored and nitisht committed May 30, 2018
1 parent a50cc7e commit dd0db52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/generic-handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ func addSecurityHeaders(h http.Handler) http.Handler {

func (s securityHeaderHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
header := w.Header()
header.Set("X-XSS-Protection", "\"1; mode=block\"") // Prevents against XSS attacks
header.Set("X-XSS-Protection", "1; mode=block") // Prevents against XSS attacks
header.Set("Content-Security-Policy", "block-all-mixed-content") // prevent mixed (HTTP / HTTPS content)
s.handler.ServeHTTP(w, r)
}

0 comments on commit dd0db52

Please sign in to comment.