An open source, non-profit web search engine
Don't add CORS on the python side
Daoud Clarke96da534ca561
diff --git a/mwmbl/main.py b/mwmbl/main.pyindex 7102bf9..5f80ac7 100644--- a/mwmbl/main.py+++ b/mwmbl/main.py@@ -51,12 +51,12 @@ def run():# Initialize FastApi instanceapp = FastAPI()- # Allow CORS requests from any site- app.add_middleware(- CORSMiddleware,- allow_origins=["*"],- allow_headers=["*"],- )+ # # 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)