mirror of
https://github.com/minio/minio.git
synced 2024-12-26 23:25:54 -05:00
Merge pull request #815 from harshavardhana/remove-cors-controller
Remove cors controller
This commit is contained in:
commit
90a247b336
@ -21,7 +21,6 @@ import (
|
||||
|
||||
router "github.com/gorilla/mux"
|
||||
"github.com/minio/minio/pkg/rpc"
|
||||
"github.com/rs/cors"
|
||||
)
|
||||
|
||||
// getRPCHandler rpc handler
|
||||
@ -40,5 +39,5 @@ func getRPCHandler() http.Handler {
|
||||
// registerRPC - register rpc handlers
|
||||
func registerRPC(mux *router.Router, s *rpc.Server) http.Handler {
|
||||
mux.Handle("/rpc", s)
|
||||
return cors.Default().Handler(mux)
|
||||
return mux
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user