From 8f7c1f463e86d6df50cb0f143af9e3c110648f18 Mon Sep 17 00:00:00 2001 From: Filippo Roggi Date: Sun, 18 Feb 2024 19:31:43 +0100 Subject: [PATCH] Whitelist all cors addresses fastapi --- src/aidapp/api/main.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/aidapp/api/main.py b/src/aidapp/api/main.py index d1ec382..1c22e85 100644 --- a/src/aidapp/api/main.py +++ b/src/aidapp/api/main.py @@ -11,11 +11,7 @@ app = FastAPI() -origins = [ - "http://localhost:5173", - "https://aidapp-fe.vercel.app/", - "https://app.aidapp.it/", -] +origins = ["*"] app.add_middleware( CORSMiddleware,