mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
add PUT and DELETE methods
This commit is contained in:
parent
f21b7f06d7
commit
7b7bcf56c9
|
@ -39,7 +39,7 @@ func (s *Server) Run(ctx context.Context) error {
|
|||
AllowOrigins: []string{"*"},
|
||||
AllowHeaders: []string{"Origin", "Content-Type"},
|
||||
ExposeHeaders: []string{"Content-Length"},
|
||||
AllowMethods: []string{"GET", "POST"},
|
||||
AllowMethods: []string{"GET", "POST", "PUT", "DELETE"},
|
||||
AllowWebSockets: true,
|
||||
AllowCredentials: true,
|
||||
MaxAge: 12 * time.Hour,
|
||||
|
|
Loading…
Reference in New Issue
Block a user