Kan05 commited on
Commit
9f7921c
·
verified ·
1 Parent(s): 8753d29

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -3
main.py CHANGED
@@ -7,13 +7,14 @@ from graph import app_graph
7
 
8
  app = FastAPI(title="Clause.ai Backend")
9
 
10
- # --- CORS SETUP (LOCKED DOWN) ---
11
  origins = [
12
- "https://clause-ai-nbu8.vercel.app"
 
13
  ]
 
14
  app.add_middleware(
15
  CORSMiddleware,
16
- allow_origins=["*"], # Allow ANYONE to connect
17
  allow_credentials=True,
18
  allow_methods=["*"],
19
  allow_headers=["*"],
 
7
 
8
  app = FastAPI(title="Clause.ai Backend")
9
 
 
10
  origins = [
11
+ "https://clause-ai-nbu8.vercel.app",
12
+ "http://localhost:3000"
13
  ]
14
+
15
  app.add_middleware(
16
  CORSMiddleware,
17
+ allow_origins=origins,
18
  allow_credentials=True,
19
  allow_methods=["*"],
20
  allow_headers=["*"],