Skip to content

Commit

Permalink
refactor: remove unused CORS configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
nosdrahcirvsky committed May 31, 2024
1 parent b28af55 commit afb4f3e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@ func main() {
r.ForwardedByClientIP = true
r.SetTrustedProxies([]string{"127.0.0.1"})

// CORS middleware configuration
// 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
file, err := c.FormFile("file")
Expand Down

0 comments on commit afb4f3e

Please sign in to comment.