kumar-aditya commited on
Commit
1916431
·
verified ·
1 Parent(s): 364f7c7

Update app/main.py

Browse files
Files changed (1) hide show
  1. app/main.py +2 -10
app/main.py CHANGED
@@ -35,16 +35,8 @@ app = FastAPI(
35
  # In production, lock this to your actual frontend domain.
36
  app.add_middleware(
37
  CORSMiddleware,
38
- allow_origins=[
39
- "http://localhost:8080",
40
- "http://localhost:8081",
41
- "http://localhost:3000",
42
- "http://localhost:5173",
43
- "http://127.0.0.1:8080",
44
- "http://127.0.0.1:8081",
45
- "http://127.0.0.1:5173",
46
- ],
47
- allow_credentials=True,
48
  allow_methods=["*"],
49
  allow_headers=["*"],
50
  expose_headers=["X-Session-Id"],
 
35
  # In production, lock this to your actual frontend domain.
36
  app.add_middleware(
37
  CORSMiddleware,
38
+ allow_origins=["*"],
39
+ allow_credentials=False,
 
 
 
 
 
 
 
 
40
  allow_methods=["*"],
41
  allow_headers=["*"],
42
  expose_headers=["X-Session-Id"],