Allow Vercel domain in CORS
Browse files- src/main.py +1 -0
src/main.py
CHANGED
|
@@ -72,6 +72,7 @@ app.add_middleware(
|
|
| 72 |
"http://localhost:3000", # React dev server
|
| 73 |
"http://localhost:5173", # Vite dev server
|
| 74 |
"http://localhost:8501", # Streamlit
|
|
|
|
| 75 |
],
|
| 76 |
allow_credentials=True,
|
| 77 |
allow_methods=["*"],
|
|
|
|
| 72 |
"http://localhost:3000", # React dev server
|
| 73 |
"http://localhost:5173", # Vite dev server
|
| 74 |
"http://localhost:8501", # Streamlit
|
| 75 |
+
"https://advanced-math-ai.vercel.app", # Vercel production
|
| 76 |
],
|
| 77 |
allow_credentials=True,
|
| 78 |
allow_methods=["*"],
|