|
@@ -70,13 +70,14 @@ def run():
|
|
|
# Initialize FastApi instance
|
|
|
app = FastAPI()
|
|
|
|
|
|
- app.add_middleware(
|
|
|
- CORSMiddleware,
|
|
|
- allow_origins=["*"],
|
|
|
- allow_credentials=True,
|
|
|
- allow_methods=["*"],
|
|
|
- allow_headers=["*"],
|
|
|
- )
|
|
|
+ # Try disabling since this is handled by nginx
|
|
|
+ # app.add_middleware(
|
|
|
+ # CORSMiddleware,
|
|
|
+ # allow_origins=["*"],
|
|
|
+ # allow_credentials=True,
|
|
|
+ # allow_methods=["*"],
|
|
|
+ # allow_headers=["*"],
|
|
|
+ # )
|
|
|
|
|
|
search_router = search.create_router(ranker)
|
|
|
app.include_router(search_router)
|