SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
fix:Handle preflight cors requests (#3496)
famosss7eb15b19694e
diff --git a/weed/s3api/s3api_server.go b/weed/s3api/s3api_server.goindex 01bc102a1c..31ee1dc92d 100644--- a/weed/s3api/s3api_server.go+++ b/weed/s3api/s3api_server.go@@ -88,9 +88,11 @@ func (s3a *S3ApiServer) registerRouter(router *mux.Router) {apiRouter.Methods("GET").Path("/status").HandlerFunc(s3a.StatusHandler)apiRouter.Methods("OPTIONS").HandlerFunc(- func(w http.ResponseWriter, r *http.Request){+ func(w http.ResponseWriter, r *http.Request) {w.Header().Set("Access-Control-Allow-Origin", "*")- w.Header().Set("Access-Control-Allow-Credentials", "true")+ w.Header().Set("Access-Control-Expose-Headers", "*")+ w.Header().Set("Access-Control-Allow-Methods", "*")+ w.Header().Set("Access-Control-Allow-Headers", "*")writeSuccessResponseEmpty(w, r)})