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")
|
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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue