Skip to content

Commit

Permalink
Remove --cors flag (#4525)
Browse files Browse the repository at this point in the history
The feature is long gone.
Thanks: Angelo Recca <a.recca@bitsong.io> for reporting this.
  • Loading branch information
Alessio Treglia authored Jun 10, 2019
1 parent d1f17ff commit 8cc708b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions .pending/breaking/sdk/4525-Remove---cors-f
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#4525 Remove --cors flag, the feature is long gone.
1 change: 0 additions & 1 deletion client/alias.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ const (
FlagGenerateOnly = flags.FlagGenerateOnly
FlagIndentResponse = flags.FlagIndentResponse
FlagListenAddr = flags.FlagListenAddr
FlagCORS = flags.FlagCORS
FlagMaxOpenConnections = flags.FlagMaxOpenConnections
FlagRPCReadTimeout = flags.FlagRPCReadTimeout
FlagRPCWriteTimeout = flags.FlagRPCWriteTimeout
Expand Down
2 changes: 0 additions & 2 deletions client/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ const (
FlagGenerateOnly = "generate-only"
FlagIndentResponse = "indent"
FlagListenAddr = "laddr"
FlagCORS = "cors"
FlagMaxOpenConnections = "max-open"
FlagRPCReadTimeout = "read-timeout"
FlagRPCWriteTimeout = "write-timeout"
Expand Down Expand Up @@ -122,7 +121,6 @@ func PostCommands(cmds ...*cobra.Command) []*cobra.Command {
func RegisterRestServerFlags(cmd *cobra.Command) *cobra.Command {
cmd = GetCommands(cmd)[0]
cmd.Flags().String(FlagListenAddr, "tcp://localhost:1317", "The address for the server to listen on")
cmd.Flags().String(FlagCORS, "", "Set the domains that can make CORS requests (* for all)")
cmd.Flags().Uint(FlagMaxOpenConnections, 1000, "The number of maximum open connections")
cmd.Flags().Uint(FlagRPCReadTimeout, 10, "The RPC read timeout (in seconds)")
cmd.Flags().Uint(FlagRPCWriteTimeout, 10, "The RPC write timeout (in seconds)")
Expand Down

0 comments on commit 8cc708b

Please sign in to comment.