Browse Source

Update weed/s3api/s3api_server.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
pull/6987/head
Chris Lu 3 months ago
committed by GitHub
parent
commit
76eafeae77
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      weed/s3api/s3api_server.go

3
weed/s3api/s3api_server.go

@ -146,6 +146,9 @@ func (s3a *S3ApiServer) handleCORSOriginValidation(w http.ResponseWriter, r *htt
w.Header().Set("Access-Control-Expose-Headers", "*")
w.Header().Set("Access-Control-Allow-Methods", "*")
w.Header().Set("Access-Control-Allow-Headers", "*")
if s3a.option.AllowCredentials {
w.Header().Set("Access-Control-Allow-Credentials", "true")
}
return true
}

Loading…
Cancel
Save