diff --git a/cmd/generic-handlers.go b/cmd/generic-handlers.go index 77f9e06c3..8ff465c01 100644 --- a/cmd/generic-handlers.go +++ b/cmd/generic-handlers.go @@ -499,7 +499,6 @@ func addCustomHeaders(h http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { header := w.Header() 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) header.Set("X-Content-Type-Options", "nosniff") // Prevent mime-sniff header.Set("Strict-Transport-Security", "max-age=31536000; includeSubDomains") // HSTS mitigates variants of MITM attacks diff --git a/docs/logging/README.md b/docs/logging/README.md index 52d861e4d..57fe42913 100644 --- a/docs/logging/README.md +++ b/docs/logging/README.md @@ -111,7 +111,6 @@ NOTE: "responseHeader": { "Accept-Ranges": "bytes", "Content-Length": "0", - "Content-Security-Policy": "block-all-mixed-content", "ETag": "4939450d1beec11e10a91ee7700bb593", "Server": "MinIO", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", diff --git a/docs/metrics/healthcheck/README.md b/docs/metrics/healthcheck/README.md index 0b3c686e0..c74fd2e53 100644 --- a/docs/metrics/healthcheck/README.md +++ b/docs/metrics/healthcheck/README.md @@ -47,8 +47,7 @@ curl http://minio1:9001/minio/health/cluster HTTP/1.1 503 Service Unavailable Accept-Ranges: bytes Content-Length: 0 -Content-Security-Policy: block-all-mixed-content -Server: MinIO/GOGET.GOGET +Server: MinIO Vary: Origin X-Amz-Bucket-Region: us-east-1 X-Minio-Write-Quorum: 3 @@ -66,8 +65,7 @@ curl http://minio1:9001/minio/health/cluster/read HTTP/1.1 503 Service Unavailable Accept-Ranges: bytes Content-Length: 0 -Content-Security-Policy: block-all-mixed-content -Server: MinIO/GOGET.GOGET +Server: MinIO Vary: Origin X-Amz-Bucket-Region: us-east-1 X-Minio-Write-Quorum: 3 @@ -85,8 +83,7 @@ curl http://minio1:9001/minio/health/cluster?maintenance=true HTTP/1.1 412 Precondition Failed Accept-Ranges: bytes Content-Length: 0 -Content-Security-Policy: block-all-mixed-content -Server: MinIO/GOGET.GOGET +Server: MinIO Vary: Origin X-Amz-Bucket-Region: us-east-1 X-Amz-Request-Id: 16239D63820C6E76