From 7c061b8dd0ff8bc6f447e196221eb2ca5d648ef6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9on=20=22Avic=22=20Simmons?= Date: Tue, 9 Jun 2026 14:58:31 -0400 Subject: [PATCH] fix: correct port number in error message and remove duplicate CORS origin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix port 9000→9002 in populate_sample_data.py to match BASE_URL - Remove duplicated http://localhost:3001 from CORS allow_origins default --- agent-registry/populate_sample_data.py | 2 +- merchant-backend/app/main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/agent-registry/populate_sample_data.py b/agent-registry/populate_sample_data.py index 4934f47..29033d4 100644 --- a/agent-registry/populate_sample_data.py +++ b/agent-registry/populate_sample_data.py @@ -121,7 +121,7 @@ def main(): return except Exception as e: print(f"❌ Cannot connect to Agent Registry Service: {str(e)}") - print(" Make sure the service is running on port 9000") + print(" Make sure the service is running on port 9002") return print("✅ Agent Registry Service is running") diff --git a/merchant-backend/app/main.py b/merchant-backend/app/main.py index fac5fec..a7e4593 100644 --- a/merchant-backend/app/main.py +++ b/merchant-backend/app/main.py @@ -53,7 +53,7 @@ async def log_requests(request: Request, call_next): # Configure CORS app.add_middleware( CORSMiddleware, - allow_origins=os.getenv("ALLOWED_ORIGINS", "http://localhost:3000,http://localhost:3001,http://localhost:3001,http://localhost:3003").split(","), # React app URL + Vite dev server + allow_origins=os.getenv("ALLOWED_ORIGINS", "http://localhost:3000,http://localhost:3001,http://localhost:3003").split(","), # React app URL + Vite dev server allow_credentials=True, allow_methods=["*"], allow_headers=["*"],