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") ENVIRONMENT = os.getenv("ENVIRONMENT", "production")
ALLOWED_ORIGINS = [ ALLOWED_ORIGINS = [
"http://127.0.0.1",
"https://lmb.cosmoguard.it", "https://lmb.cosmoguard.it",
"http://localhost:8501", # Streamlit locale "http://localhost:8501", # Streamlit locale
] ]
TRUSTED_HOSTS = [ TRUSTED_HOSTS = [
"lmb.cosmoguard.it", "lmb.cosmoguard.it",
"localhost", "http://localhost",
"127.0.0.1", "http://127.0.0.1",
"*"
] ]
# Inizializza FastAPI # Inizializza FastAPI