Browse Source

simplify

pull/6987/head
chrislu 3 months ago
parent
commit
925a183203
  1. 4
      weed/s3api/s3api_server.go

4
weed/s3api/s3api_server.go

@ -146,9 +146,7 @@ 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")
}
w.Header().Set("Access-Control-Allow-Credentials", "true")
return true
}

Loading…
Cancel
Save