From c940581b832cb69e0894a6006a694733c27cd598 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 11 Apr 2024 23:51:54 -0300 Subject: [PATCH] refactor: disable CORS config --- main.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 52a7b1b..05bdadc 100644 --- a/main.go +++ b/main.go @@ -13,7 +13,6 @@ import ( "path/filepath" "time" - "github.com/gin-contrib/cors" "github.com/gin-gonic/gin" "github.com/google/uuid" "github.com/joho/godotenv" @@ -61,9 +60,9 @@ func main() { r.SetTrustedProxies([]string{"127.0.0.1"}) // CORS middleware configuration - config := cors.DefaultConfig() - config.AllowOrigins = []string{"*"} - r.Use(cors.New(config)) + // config := cors.DefaultConfig() + // config.AllowOrigins = []string{"*"} + // r.Use(cors.New(config)) r.POST("/storage-service/upload", func(c *gin.Context) { // Get the file from the request