abdullah-khaled commited on
Commit
5a6fe47
·
1 Parent(s): 1c1da52

update the CORS to add frontend url

Browse files
Files changed (1) hide show
  1. src/backend/voice_assistant.py +1 -1
src/backend/voice_assistant.py CHANGED
@@ -39,7 +39,7 @@ app = FastAPI()
39
  # Add CORS middleware
40
  app.add_middleware(
41
  CORSMiddleware,
42
- allow_origins=["https://abdullah-khaled-ai-voice-secretary.hf.space"],
43
  allow_credentials=True,
44
  allow_methods=["GET", "POST", "OPTIONS"],
45
  allow_headers=["Content-Type", "Authorization", "Accept", "X-Requested-With"],
 
39
  # Add CORS middleware
40
  app.add_middleware(
41
  CORSMiddleware,
42
+ allow_origins=["https://ai-voice-secretary-git-main-abdullah-khaled0s-projects.vercel.app"],
43
  allow_credentials=True,
44
  allow_methods=["GET", "POST", "OPTIONS"],
45
  allow_headers=["Content-Type", "Authorization", "Accept", "X-Requested-With"],