feat: Update configuration files for CORS settings and add production environment

This commit is contained in:
2026-01-07 13:59:55 +01:00
parent 5af5785fa0
commit 3b7a1e3c64
2 changed files with 15 additions and 5 deletions

View File

@@ -14,14 +14,10 @@ auth {
publicKeyPem = ${?PUBLIC_KEY_PEM}
}
play.http.context="/api"
play.modules.enabled += "modules.GatewayModule"
play.filters.enabled += "play.filters.cors.CORSFilter"
play.filters.cors {
allowedOrigins = ["http://localhost:5173", "http://localhost:3000", "http://localhost:8081"]
allowedOrigins = ["http://localhost:5173"]
allowedCredentials = true
allowedHttpMethods = ["GET", "POST", "PUT", "DELETE", "OPTIONS"]
allowedHttpHeaders = ["Accept", "Content-Type", "Origin", "X-Requested-With"]