diff --git a/core/corehttp/commands.go b/core/corehttp/commands.go index 816d5775c623..0f9b8d603099 100644 --- a/core/corehttp/commands.go +++ b/core/corehttp/commands.go @@ -122,7 +122,7 @@ func commandsOption(cctx oldcmds.Context, command *cmds.Command, allowGet bool) cfg := cmdsHttp.NewServerConfig() cfg.AllowGet = allowGet - corsAllowedMethods := []string{http.MethodPost, http.MethodPut} + corsAllowedMethods := []string{http.MethodPost} if allowGet { corsAllowedMethods = append(corsAllowedMethods, http.MethodGet) }