diff --git a/src/pif_compiler/main.py b/src/pif_compiler/main.py index f0a6fc0..7411c77 100644 --- a/src/pif_compiler/main.py +++ b/src/pif_compiler/main.py @@ -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