Skip to content

Commit faa003f

Browse files
nl0claude
andcommitted
s3-proxy: expose x-amz-restore response header via CORS
The catalog file page reads an object's Glacier / Deep Archive restore state from the x-amz-restore HEAD response header; browsers only surface that header cross-origin when it's listed in Access-Control-Expose-Headers. Split out of #4921 (catalog Glacier rehydration UX) so this s3-proxy image change is independently reviewable and deployable. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent f9b6e02 commit faa003f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

s3-proxy/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ http {
3838
add_header 'Access-Control-Allow-Methods' $http_access_control_request_method always;
3939
add_header 'Access-Control-Allow-Origin' '*' always;
4040
add_header 'Access-Control-Max-Age' '3000' always;
41-
add_header 'Access-Control-Expose-Headers' 'Content-Length, Content-Range, ETag, x-amz-meta-helium, x-amz-bucket-region, x-amz-delete-marker, x-amz-request-id, x-amz-version-id, x-amz-storage-class' always;
41+
add_header 'Access-Control-Expose-Headers' 'Content-Length, Content-Range, ETag, x-amz-meta-helium, x-amz-bucket-region, x-amz-delete-marker, x-amz-request-id, x-amz-version-id, x-amz-storage-class, x-amz-restore' always;
4242

4343
# Return success on OPTIONS.
4444
if ($request_method = 'OPTIONS') {

0 commit comments

Comments
 (0)