fixed origins
This commit is contained in:
parent
13c533cfb8
commit
7ef78b1690
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue