From 7ef78b16900fb76ec848f31519d3dc85bc417755 Mon Sep 17 00:00:00 2001 From: Adish Date: Tue, 17 Mar 2026 18:51:56 +0100 Subject: [PATCH] fixed origins --- src/pif_compiler/main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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