Browse Source

added access-control-expose-headers to put request (#5876)

pull/5878/head
Kamran Sarwar 4 months ago
committed by GitHub
parent
commit
63c707f9c1
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      weed/s3api/s3err/error_handler.go

1
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")
}
}

Loading…
Cancel
Save