mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 07:57:35 +00:00
Always set content-type & nosniff
This commit is contained in:
@@ -118,6 +118,7 @@ func write(w http.ResponseWriter) error {
|
||||
return fmt.Errorf("error marshaling json: %v", err)
|
||||
}
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
w.Header().Set("X-Content-Type-Options", "nosniff")
|
||||
_, err = w.Write(b)
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user