From 7e8d3fceb6071af43221ccdc9d572079cc4b7dc8 Mon Sep 17 00:00:00 2001 From: brunopereira03 <77056372+brunopereira03@users.noreply.github.com> Date: Mon, 13 Jun 2022 10:28:24 +0100 Subject: [PATCH] Delete method Fixed --- server/routes/router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routes/router.go b/server/routes/router.go index f0cfd68..c6734db 100644 --- a/server/routes/router.go +++ b/server/routes/router.go @@ -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, }))