CORS is handled by nginx

This commit is contained in:
Daoud Clarke 2022-06-19 13:13:36 +01:00
parent 96da534ca5
commit c31cea710f

View file

@ -51,13 +51,6 @@ def run():
# Initialize FastApi instance
app = FastAPI()
# # Allow CORS requests from any site
# app.add_middleware(
# CORSMiddleware,
# allow_origins=["*"],
# allow_headers=["*"],
# )
search_router = search.create_router(ranker)
app.include_router(search_router)
app.include_router(crawler_router)