remove deprecated X-XSS-Protection header

Only legacy browsers are still supporting this header. See
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection#browser_compatibility.
This commit is contained in:
David Christofas
2021-09-30 13:40:21 +02:00
parent 4b43c5f81f
commit 4a30624fe8

View File

@@ -38,7 +38,6 @@ func Secure(next http.Handler) http.Handler {
w.Header().Set("Access-Control-Allow-Origin", "*")
w.Header().Set("X-Frame-Options", "DENY")
w.Header().Set("X-Content-Type-Options", "nosniff")
w.Header().Set("X-XSS-Protection", "1; mode=block")
if r.TLS != nil {
w.Header().Set("Strict-Transport-Security", "max-age=31536000")