Rajeev Pandey commited on
Commit
8f885d1
·
unverified ·
1 Parent(s): e58b2bd

fix: allow all origins for CORS on HF Spaces

Browse files
Files changed (1) hide show
  1. 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
- allow_origins=["http://localhost:5173", "http://127.0.0.1:5173"],
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=["*"],