Skip to content

Commit

Permalink
fix: Enabled CORS again
Browse files Browse the repository at this point in the history
  • Loading branch information
dogukanoksuz committed Jul 19, 2024
1 parent 53baf4d commit 6587754
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/utils/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (

"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/compress"
"github.com/gofiber/fiber/v2/middleware/cors"
"github.com/gofiber/fiber/v2/middleware/recover"
"github.com/gofiber/helmet/v2"
"github.com/limanmys/render-engine/app/middleware/app_logger"
Expand Down Expand Up @@ -43,10 +42,6 @@ func CreateServer() {
app.Use(auth.New())
app.Use(permission.New())
app.Use(app_logger.New())
app.Use(cors.New(cors.Config{
AllowOrigins: "*",
AllowCredentials: true,
}))

// Mount routes
routes.Install(app)
Expand Down

0 comments on commit 6587754

Please sign in to comment.