how to set cors setting : my project go-gin

so i tried setting cors


When I submitted the following code,

```
package middleware

import (
	"github.com/gin-contrib/cors"
	"github.com/gin-gonic/gin"
)

func Use() {
	gin.SetMode(gin.ReleaseMode)

	cors.Default()
	return
}
```

```

func main() {
	log.Printf("Server started")

	r := gin.Default()

	route.Route(r)

	middleware.Use()

	log.Fatal(r.Run(":8080"))
}

```

but it was pointed out that cors did not work, and this method worked fine with the application I created before, but I know what the problem is with this application Is not ...

If anyone knows it would be nice to tell you

thanks
