fix: revert AllowOrigins
All checks were successful
Build and Deploy Go App / build (push) Successful in 5m39s
Build and Deploy Go App / deploy (push) Successful in 29s

This commit is contained in:
nihonium 2025-12-04 09:04:37 +03:00
parent 2f4f8164df
commit 475266eef6
Signed by: nihonium
GPG key ID: 0251623741027CFC

View file

@ -63,8 +63,8 @@ func main() {
server := handlers.NewServer(queries, publisher, rpcClient)
r.Use(cors.New(cors.Config{
// AllowOrigins: []string{AppConfig.ServiceAddress},
AllowOrigins: []string{"*"},
AllowOrigins: []string{AppConfig.ServiceAddress},
// AllowOrigins: []string{"*"},
AllowMethods: []string{"GET", "POST", "PUT", "DELETE", "PATCH"},
AllowHeaders: []string{"Origin", "Content-Type", "Accept", "X-XSRF-TOKEN"},
ExposeHeaders: []string{"Content-Length"},