Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jianoaix committed May 10, 2024
1 parent 4198ba2 commit 2b75976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion disperser/dataapi/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ func (s *server) Start() error {
config := cors.DefaultConfig()
config.AllowOrigins = s.allowOrigins
config.AllowCredentials = true
config.AllowMethods = []string{"GET", "POST", "HEAD", "OPTIONS"}
config.AllowMethods = []string{"GET", "HEAD", "OPTIONS"}

if s.serverMode != gin.ReleaseMode {
config.AllowOrigins = []string{"*"}
Expand Down

0 comments on commit 2b75976

Please sign in to comment.