Rudraaaa76 commited on
Commit
c039a0e
·
1 Parent(s): 1bf8daa
Files changed (1) hide show
  1. backend/main.py +2 -6
backend/main.py CHANGED
@@ -44,13 +44,9 @@ async def log_requests(request: Request, call_next):
44
  # Strict CORS for production (Update origins as needed for frontend)
45
  app.add_middleware(
46
  CORSMiddleware,
47
- allow_origins=[
48
- "http://localhost:3000",
49
- "https://your-frontend-domain.vercel.app",
50
- "*" # Temporarily fallback to * if frontend domain is unknown, but recommended to lock this down
51
- ],
52
  allow_credentials=True,
53
- allow_methods=["GET", "POST", "OPTIONS"],
54
  allow_headers=["*"],
55
  )
56
 
 
44
  # Strict CORS for production (Update origins as needed for frontend)
45
  app.add_middleware(
46
  CORSMiddleware,
47
+ allow_origins=["*"],
 
 
 
 
48
  allow_credentials=True,
49
+ allow_methods=["*"],
50
  allow_headers=["*"],
51
  )
52