Spaces:
Sleeping
Sleeping
Rajeev Pandey commited on
fix: allow all origins for CORS on HF Spaces
Browse files- backend/main.py +1 -1
backend/main.py
CHANGED
|
@@ -32,7 +32,7 @@ def _safe_int(val) -> int | None:
|
|
| 32 |
app = FastAPI(title="Traffic Incident Summarization API", version="0.4.0")
|
| 33 |
app.add_middleware(
|
| 34 |
CORSMiddleware,
|
| 35 |
-
|
| 36 |
allow_credentials=True,
|
| 37 |
allow_methods=["*"],
|
| 38 |
allow_headers=["*"],
|
|
|
|
| 32 |
app = FastAPI(title="Traffic Incident Summarization API", version="0.4.0")
|
| 33 |
app.add_middleware(
|
| 34 |
CORSMiddleware,
|
| 35 |
+
allow_origins=["*"],
|
| 36 |
allow_credentials=True,
|
| 37 |
allow_methods=["*"],
|
| 38 |
allow_headers=["*"],
|