|
|
|
@ -22,6 +22,7 @@ import ( |
|
|
|
|
"time" |
|
|
|
|
|
|
|
|
|
"github.com/minio/minio/pkg/auth" |
|
|
|
|
"github.com/rs/cors" |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
type contentTypeHandler struct { |
|
|
|
@ -150,6 +151,10 @@ func (h validateAuthHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func CorsHandler(h http.Handler) http.Handler { |
|
|
|
|
return cors.Default().Handler(h) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// IgnoreResourcesHandler -
|
|
|
|
|
// Ignore resources handler is wrapper handler used for API request resource validation
|
|
|
|
|
// Since we do not support all the S3 queries, it is necessary for us to throw back a
|
|
|
|
|