Spaces:
Sleeping
Sleeping
fix (app): port allowed
Browse files
app/server_factory_predictor.py
CHANGED
|
@@ -16,7 +16,7 @@ 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","http://localhost: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","http://localhost:7860","http://0.0.0.0:7860"],
|
| 20 |
allow_credentials=True,
|
| 21 |
allow_methods=["*"],
|
| 22 |
allow_headers=["*"],
|