mirror of https://github.com/minio/minio.git
add delete and options methods to CORS whitelist (#3589)
This commit is contained in:
parent
09b450d610
commit
20a65981bd
|
@ -253,7 +253,7 @@ type resourceHandler struct {
|
|||
func setCorsHandler(h http.Handler) http.Handler {
|
||||
c := cors.New(cors.Options{
|
||||
AllowedOrigins: []string{"*"},
|
||||
AllowedMethods: []string{"GET", "HEAD", "POST", "PUT"},
|
||||
AllowedMethods: []string{"GET", "HEAD", "POST", "PUT", "DELETE", "OPTIONS"},
|
||||
AllowedHeaders: []string{"*"},
|
||||
ExposedHeaders: []string{"ETag"},
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue