Jelajahi Sumber

Don't add CORS on the python side

Daoud Clarke 3 tahun lalu
induk
melakukan
96da534ca5
1 mengubah file dengan 6 tambahan dan 6 penghapusan
  1. 6 6
      mwmbl/main.py

+ 6 - 6
mwmbl/main.py

@@ -51,12 +51,12 @@ 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=["*"],
-        )
+        # # 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)