Update app.py
Browse files
app.py
CHANGED
|
@@ -92,8 +92,9 @@ def create_app() -> FastAPI:
|
|
| 92 |
"http://127.0.0.1:5173",
|
| 93 |
"http://localhost:8080",
|
| 94 |
]
|
| 95 |
-
|
| 96 |
-
|
|
|
|
| 97 |
|
| 98 |
app.add_middleware(
|
| 99 |
CORSMiddleware,
|
|
|
|
| 92 |
"http://127.0.0.1:5173",
|
| 93 |
"http://localhost:8080",
|
| 94 |
]
|
| 95 |
+
extra = getattr(settings, "extra_cors_origins", None)
|
| 96 |
+
if extra:
|
| 97 |
+
origins.extend(extra)
|
| 98 |
|
| 99 |
app.add_middleware(
|
| 100 |
CORSMiddleware,
|