fixed origins

This commit is contained in:
Adish 2026-03-17 18:51:56 +01:00
parent 13c533cfb8
commit 7ef78b1690

View file

@ -39,13 +39,15 @@ async def lifespan(app: FastAPI):
ENVIRONMENT = os.getenv("ENVIRONMENT", "production")
ALLOWED_ORIGINS = [
"http://127.0.0.1",
"https://lmb.cosmoguard.it",
"http://localhost:8501", # Streamlit locale
]
TRUSTED_HOSTS = [
"lmb.cosmoguard.it",
"localhost",
"127.0.0.1",
"http://localhost",
"http://127.0.0.1",
"*"
]
# Inizializza FastAPI