Skip to content

Commit

Permalink
fix: allow delete method cors
Browse files Browse the repository at this point in the history
  • Loading branch information
TheComputerM committed Jan 15, 2025
1 parent cc8e0aa commit 518b0cc
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ import (

func main() {
router := gin.Default()
router.Use(cors.New(cors.Config{
// TODO(release): need to properly configure these before release
AllowAllOrigins: true,
AllowHeaders: []string{"*"},
}))

// TODO(release): need to properly configure these before release
corsConfig := cors.DefaultConfig()
corsConfig.AllowAllOrigins = true
corsConfig.AllowHeaders = []string{"*"}

router.Use(cors.New(corsConfig))

var locationMiddleware gin.HandlerFunc

Expand Down

0 comments on commit 518b0cc

Please sign in to comment.