From fd615fd97b76fe96eca29507541e943f6366ff69 Mon Sep 17 00:00:00 2001 From: Mandar Deolalikar <11888634+dmandar@users.noreply.github.com> Date: Mon, 15 Dec 2025 10:58:39 -0800 Subject: [PATCH] fix build --- samples/agent/adk/contact_lookup/__main__.py | 2 +- samples/agent/adk/contact_lookup/a2ui_examples.py | 1 + samples/agent/adk/restaurant_finder/__main__.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/samples/agent/adk/contact_lookup/__main__.py b/samples/agent/adk/contact_lookup/__main__.py index d9e4ebed6..7353ed2f3 100644 --- a/samples/agent/adk/contact_lookup/__main__.py +++ b/samples/agent/adk/contact_lookup/__main__.py @@ -89,7 +89,7 @@ def main(host, port): app.add_middleware( CORSMiddleware, - allow_origins=["http://localhost:5173"], + allow_origin_regex=r"http://localhost:\d+", allow_credentials=True, allow_methods=["*"], allow_headers=["*"], diff --git a/samples/agent/adk/contact_lookup/a2ui_examples.py b/samples/agent/adk/contact_lookup/a2ui_examples.py index e63babb31..0e59b4a55 100644 --- a/samples/agent/adk/contact_lookup/a2ui_examples.py +++ b/samples/agent/adk/contact_lookup/a2ui_examples.py @@ -159,4 +159,5 @@ } } ] ---END FOLLOW_SUCCESS_EXAMPLE--- +""" diff --git a/samples/agent/adk/restaurant_finder/__main__.py b/samples/agent/adk/restaurant_finder/__main__.py index 4503a4ef7..6bca50c2b 100644 --- a/samples/agent/adk/restaurant_finder/__main__.py +++ b/samples/agent/adk/restaurant_finder/__main__.py @@ -89,7 +89,7 @@ def main(host, port): app.add_middleware( CORSMiddleware, - allow_origins=["http://localhost:5173"], + allow_origin_regex=r"http://localhost:\d+", allow_credentials=True, allow_methods=["*"], allow_headers=["*"],