Daoud Clarke пре 2 година
родитељ
комит
18dc760a34
1 измењених фајлова са 8 додато и 7 уклоњено
  1. 8 7
      mwmbl/main.py

+ 8 - 7
mwmbl/main.py

@@ -70,13 +70,14 @@ def run():
         # Initialize FastApi instance
         # Initialize FastApi instance
         app = FastAPI()
         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)
         search_router = search.create_router(ranker)
         app.include_router(search_router)
         app.include_router(search_router)