Badhri-Prasath-D-R commited on
Commit
302efe3
·
1 Parent(s): a5f5ed7

Update CORS for Vercel deployment

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -45,7 +45,7 @@ app = FastAPI(lifespan=lifespan)
45
 
46
  app.add_middleware(
47
  CORSMiddleware,
48
- allow_origins=["http://localhost:5173","https://crisis-truth-ai.netlify.app"],
49
  allow_credentials=True,
50
  allow_methods=["*"],
51
  allow_headers=["*"],
 
45
 
46
  app.add_middleware(
47
  CORSMiddleware,
48
+ allow_origins=["http://localhost:5173","https://crisis-truth-ai.netlify.app","https://crisis-truth-vercel.vercel.app"],
49
  allow_credentials=True,
50
  allow_methods=["*"],
51
  allow_headers=["*"],