Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -12,14 +12,14 @@ app = FastAPI(title="Notionhive Chatbot")
|
|
| 12 |
|
| 13 |
# Enable CORS for frontend
|
| 14 |
app.add_middleware(
|
| 15 |
-
ProxyHeadersMiddleware,
|
| 16 |
-
trusted_hosts=["*"],
|
| 17 |
CORSMiddleware,
|
|
|
|
| 18 |
allow_origins=["*"],
|
| 19 |
allow_credentials=True,
|
| 20 |
allow_methods=["*"],
|
| 21 |
-
allow_headers=["*"]
|
| 22 |
-
|
|
|
|
| 23 |
|
| 24 |
# Include FAQ API routes
|
| 25 |
app.include_router(faq_router)
|
|
|
|
| 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
|
| 25 |
app.include_router(faq_router)
|