bekzhanK1 commited on
Commit
09a1047
·
1 Parent(s): 93ade99

Update CORS origins for Vercel deployment

Browse files
Files changed (1) hide show
  1. api.py +3 -2
api.py CHANGED
@@ -26,10 +26,11 @@ app = FastAPI(
26
  version="1.0.0"
27
  )
28
 
29
- # Enable CORS for all origins (required for Hugging Face Spaces public API)
30
  app.add_middleware(
31
  CORSMiddleware,
32
- allow_origins=["*"], # Allow all origins for public API access
 
33
  allow_credentials=True,
34
  allow_methods=["*"],
35
  allow_headers=["*"],
 
26
  version="1.0.0"
27
  )
28
 
29
+ # Enable CORS for all origins (adjust in production)
30
  app.add_middleware(
31
  CORSMiddleware,
32
+ allow_origins=["https://c4dac4a814a5.ngrok-free.app",
33
+ "https://armeta-hackaton.vercel.app"],
34
  allow_credentials=True,
35
  allow_methods=["*"],
36
  allow_headers=["*"],