Pacicap commited on
Commit
8efd20f
·
1 Parent(s): ceca583

in main.py allow vercel to access backend

Browse files
Files changed (1) hide show
  1. main.py +2 -1
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=["*"],