This commit is contained in:
Chris Lu
2026-01-21 13:05:28 -08:00
parent 7d788ae73c
commit 16c8aac7c9

View File

@@ -52,7 +52,7 @@ func (m *Middleware) getCORSConfig(bucket string) (*CORSConfiguration, bool) {
// No bucket config, proceed to fallback.
case s3err.ErrNoSuchBucket:
// Bucket doesn't exist, proceed to fallback.
// This ensures we don't leak existence information and returning 403 vs 200.
// This ensures we don't leak existence information by returning 403 vs 200.
default:
// Any other error means we should not proceed.
return nil, false