Update app.py

This commit is contained in:
idittrich-valueon 2025-05-14 12:45:33 +02:00 committed by GitHub
parent c489842268
commit ff575e6556
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

2
app.py
View file

@ -86,7 +86,7 @@ async def lifespan(app: FastAPI):
# Parse CORS origins from environment variable # Parse CORS origins from environment variable
def get_allowed_origins(): def get_allowed_origins():
origins_str = APP_CONFIG.get("APP_ALLOWED_ORIGINS", "http://localhost:5176") origins_str = APP_CONFIG.get("APP_ALLOWED_ORIGINS", "http://localhost:8080")
# Split by comma and strip whitespace # Split by comma and strip whitespace
origins = [origin.strip() for origin in origins_str.split(",")] origins = [origin.strip() for origin in origins_str.split(",")]
logger.info(f"CORS allowed origins: {origins}") logger.info(f"CORS allowed origins: {origins}")