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=["*"],