Browse Source

CORS is handled by nginx

Daoud Clarke 3 years ago
parent
commit
c31cea710f
1 changed files with 0 additions and 7 deletions
  1. 0 7
      mwmbl/main.py

+ 0 - 7
mwmbl/main.py

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