Compare commits

...

2 commits

Author SHA1 Message Date
f50ed2df34 Merge branch 'dev' of ssh://meowgit.nekoea.red:22222/nihonium/nyanimedb into dev
Some checks failed
Build and Deploy Go App / build (push) Has been cancelled
Build and Deploy Go App / deploy (push) Has been cancelled
2025-12-04 07:40:27 +03:00
570be2a68b fix 2025-12-04 07:40:21 +03:00
2 changed files with 3 additions and 1 deletions

View file

@ -64,6 +64,7 @@ services:
DATABASE_URL: ${DATABASE_URL}
SERVICE_ADDRESS: ${SERVICE_ADDRESS}
JWT_PRIVATE_KEY: ${JWT_PRIVATE_KEY}
RABBITMQ_URL: ${RABBITMQ_URL}
ports:
- "8082:8082"
depends_on:

View file

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