notionhive-ai commited on
Commit
6a9ee77
·
verified ·
1 Parent(s): cbaffde

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -4
main.py CHANGED
@@ -9,16 +9,14 @@ import auth
9
  # from telegram import router as telegram_router
10
 
11
  app = FastAPI(title="Notionhive Chatbot")
12
-
13
- # Enable CORS for frontend
14
  app.add_middleware(
15
  CORSMiddleware,
16
- ProxyHeadersMiddleware,
17
  allow_origins=["*"],
18
  allow_credentials=True,
19
  allow_methods=["*"],
20
  allow_headers=["*"],
21
- trusted_hosts="*")
22
 
23
 
24
  # Include FAQ API routes
 
9
  # from telegram import router as telegram_router
10
 
11
  app = FastAPI(title="Notionhive Chatbot")
12
+ app.add_middleware(ProxyHeadersMiddleware, trusted_hosts="*")
 
13
  app.add_middleware(
14
  CORSMiddleware,
 
15
  allow_origins=["*"],
16
  allow_credentials=True,
17
  allow_methods=["*"],
18
  allow_headers=["*"],
19
+ )
20
 
21
 
22
  # Include FAQ API routes