Compare commits

..

No commits in common. "7ddb7ec4f81bc9b9f61071182caba2e569ffc2b2" and "61db4ff54d1a5c11594dd6580277b889402a35d9" have entirely different histories.

View file

@ -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"},