diff --git a/modules/auth/main.go b/modules/auth/main.go index 7305b7d..ef9b977 100644 --- a/modules/auth/main.go +++ b/modules/auth/main.go @@ -44,9 +44,8 @@ func main() { server := handlers.NewServer(queries, AppConfig.JwtPrivateKey) - log.Info("allow origins:", AppConfig.ServiceAddress) r.Use(cors.New(cors.Config{ - AllowOrigins: []string{"*"}, + AllowOrigins: []string{AppConfig.ServiceAddress}, AllowMethods: []string{"GET", "POST", "PUT", "DELETE"}, AllowHeaders: []string{"Origin", "Content-Type", "Accept"}, ExposeHeaders: []string{"Content-Length"},