Spaces:
Sleeping
Sleeping
in main.py allow vercel to access backend
Browse files
main.py
CHANGED
|
@@ -12,7 +12,8 @@ app = FastAPI()
|
|
| 12 |
|
| 13 |
app.add_middleware(
|
| 14 |
CORSMiddleware,
|
| 15 |
-
allow_origins=["http://localhost:5173"
|
|
|
|
| 16 |
allow_credentials=True,
|
| 17 |
allow_methods=["*"],
|
| 18 |
allow_headers=["*"],
|
|
|
|
| 12 |
|
| 13 |
app.add_middleware(
|
| 14 |
CORSMiddleware,
|
| 15 |
+
allow_origins=["http://localhost:5173",
|
| 16 |
+
"https://react-portfolio-ij8ifou62-pacicaps-projects.vercel.app"],
|
| 17 |
allow_credentials=True,
|
| 18 |
allow_methods=["*"],
|
| 19 |
allow_headers=["*"],
|