Skip to content

Commit

Permalink
Delete method Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
brunopereira03 committed Jun 13, 2022
1 parent 7ff0041 commit 7e8d3fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/routes/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
func ConfigRoutes(router *gin.Engine) *gin.Engine {
router.Use(cors.New(cors.Options{
AllowedOrigins: []string{"*"},
AllowedMethods: []string{"GET", "POST", "PUT", "OPTIONS"},
AllowedMethods: []string{"GET", "POST", "PUT", "OPTIONS", "DELETE"},
AllowedHeaders: []string{"Origin", "Content-Type", "Accept", "Authorization"},
AllowCredentials: true,
}))
Expand Down

0 comments on commit 7e8d3fc

Please sign in to comment.