Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -570,21 +570,22 @@ from fastapi.middleware.cors import CORSMiddleware
|
|
570 |
# CORS middleware setup
|
571 |
app.add_middleware(
|
572 |
CORSMiddleware,
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
|
|
588 |
allow_credentials=True,
|
589 |
allow_methods=["GET", "POST"],
|
590 |
allow_headers=["*"],
|
|
|
570 |
# CORS middleware setup
|
571 |
app.add_middleware(
|
572 |
CORSMiddleware,
|
573 |
+
allow_origins=["*"],
|
574 |
+
# allow_origins=[
|
575 |
+
# "http://127.0.0.1:5501/",
|
576 |
+
# "http://localhost:5501",
|
577 |
+
# "http://localhost:3000",
|
578 |
+
# "https://www.elevaticsai.com",
|
579 |
+
# "https://www.elevatics.cloud",
|
580 |
+
# "https://www.elevatics.online",
|
581 |
+
# "https://www.elevatics.ai",
|
582 |
+
# "https://elevaticsai.com",
|
583 |
+
# "https://elevatics.cloud",
|
584 |
+
# "https://elevatics.online",
|
585 |
+
# "https://elevatics.ai",
|
586 |
+
# "https://pvanand-specialized-agents.hf.space",
|
587 |
+
# "https://pvanand-audio-chat.hf.space/"
|
588 |
+
# ],
|
589 |
allow_credentials=True,
|
590 |
allow_methods=["GET", "POST"],
|
591 |
allow_headers=["*"],
|