Skip to content

A platform for community discussion. Free, open, simple.

FIX: Update DIRECT_UPLOAD CORS ruleset to include new Amazon signing headers (#23379)

Chris Rendle-Short7ea3079e3e7b
diff --git a/lib/s3_cors_rulesets.rb b/lib/s3_cors_rulesets.rb
index 91216de082c..dfd3db3d386 100644
--- a/lib/s3_cors_rulesets.rb
+++ b/lib/s3_cors_rulesets.rb
@@ -19,7 +19,13 @@ class S3CorsRulesets
}.freeze
DIRECT_UPLOAD = {
- allowed_headers: %w[Authorization Content-Disposition Content-Type],
+ allowed_headers: %w[
+ Authorization
+ Content-Disposition
+ Content-Type
+ X-Amz-Acl
+ X-Amz-Meta-Sha1-Checksum
+ ],
expose_headers: ["ETag"],
allowed_methods: %w[GET HEAD PUT],
allowed_origins: ["*"],