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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
0 deletions
-
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 |
|
|
|
} |
|
|
|
|
|
|
|