Spaces:
Sleeping
Sleeping
fix (app): add external origin
Browse files
app/server_factory_predictor.py
CHANGED
|
@@ -16,7 +16,8 @@ app.mount("/app/static", StaticFiles(directory="static"), name="static")
|
|
| 16 |
|
| 17 |
app.add_middleware(
|
| 18 |
CORSMiddleware,
|
| 19 |
-
allow_origins=["http://127.0.0.1:5173","http://localhost:5173","http://127.0.0.1:7860",
|
|
|
|
| 20 |
allow_credentials=True,
|
| 21 |
allow_methods=["*"],
|
| 22 |
allow_headers=["*"],
|
|
|
|
| 16 |
|
| 17 |
app.add_middleware(
|
| 18 |
CORSMiddleware,
|
| 19 |
+
allow_origins=["http://127.0.0.1:5173","http://localhost:5173","http://127.0.0.1:7860",
|
| 20 |
+
"http://localhost:7860","http://0.0.0.0:7860", "http://santanche-factory-ml.hf.space"],
|
| 21 |
allow_credentials=True,
|
| 22 |
allow_methods=["*"],
|
| 23 |
allow_headers=["*"],
|