Spaces:
Sleeping
Sleeping
Commit
·
5a6fe47
1
Parent(s):
1c1da52
update the CORS to add frontend url
Browse files
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://
|
| 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"],
|