From 63c707f9c1b4dc469ec39c446563c324ce4ccb6f Mon Sep 17 00:00:00 2001 From: Kamran Sarwar Date: Sat, 10 Aug 2024 03:52:05 +0500 Subject: [PATCH] added access-control-expose-headers to put request (#5876) --- weed/s3api/s3err/error_handler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/weed/s3api/s3err/error_handler.go b/weed/s3api/s3err/error_handler.go index 3fb04a313..466c0e61b 100644 --- a/weed/s3api/s3err/error_handler.go +++ b/weed/s3api/s3err/error_handler.go @@ -79,6 +79,7 @@ func setCommonHeaders(w http.ResponseWriter, r *http.Request) { w.Header().Set("Accept-Ranges", "bytes") if r.Header.Get("Origin") != "" { w.Header().Set("Access-Control-Allow-Origin", "*") + w.Header().Set("Access-Control-Expose-Headers", "*") w.Header().Set("Access-Control-Allow-Credentials", "true") } }