JacobJA commited on
Commit
dc7a25e
·
1 Parent(s): 555c986

Fix CORS issue for HF deployment

Browse files
Files changed (1) hide show
  1. src/api/main.py +1 -4
src/api/main.py CHANGED
@@ -15,10 +15,7 @@ app = FastAPI(
15
  # CORS for Next.js frontend
16
  app.add_middleware(
17
  CORSMiddleware,
18
- allow_origins=[
19
- "http://localhost:3000",
20
- "https://lablab-ai-amd-developer-hackathon-systemforge-ai.hf.space",
21
- ],
22
  allow_credentials=True,
23
  allow_methods=["*"],
24
  allow_headers=["*"],
 
15
  # CORS for Next.js frontend
16
  app.add_middleware(
17
  CORSMiddleware,
18
+ allow_origins=["*"],
 
 
 
19
  allow_credentials=True,
20
  allow_methods=["*"],
21
  allow_headers=["*"],