Skip to content

Commit

Permalink
Removed Cors
Browse files Browse the repository at this point in the history
  • Loading branch information
Sakshamag21 committed Jul 10, 2023
1 parent 61201c2 commit 3480621
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/services/initialization.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"proton/internal/router"
"github.com/spf13/viper"
"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/cors"
// "github.com/gofiber/fiber/v2/middleware/cors"
"github.com/gofiber/fiber/v2/middleware/logger"
"github.com/gofiber/fiber/v2/middleware/recover"
// "go.mongodb.org/mongo-driver/bson"
Expand Down Expand Up @@ -35,7 +35,8 @@ func Run() error {
// add basic middleware
app.Use(logger.New())
app.Use(recover.New())
app.Use(cors.New())
// app.Use(cors.New())


// add routes
router.AddcourseGroup(app)
Expand Down

0 comments on commit 3480621

Please sign in to comment.