Skip to content

Commit c778fa8

Browse files
authored
fix build (#286)
1 parent 54d0be4 commit c778fa8

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

samples/agent/adk/contact_lookup/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def main(host, port):
8989

9090
app.add_middleware(
9191
CORSMiddleware,
92-
allow_origins=["http://localhost:5173"],
92+
allow_origin_regex=r"http://localhost:\d+",
9393
allow_credentials=True,
9494
allow_methods=["*"],
9595
allow_headers=["*"],

samples/agent/adk/contact_lookup/a2ui_examples.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,4 +159,5 @@
159159
} }
160160
]
161161
---END FOLLOW_SUCCESS_EXAMPLE---
162+
"""
162163

samples/agent/adk/restaurant_finder/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def main(host, port):
8989

9090
app.add_middleware(
9191
CORSMiddleware,
92-
allow_origins=["http://localhost:5173"],
92+
allow_origin_regex=r"http://localhost:\d+",
9393
allow_credentials=True,
9494
allow_methods=["*"],
9595
allow_headers=["*"],

0 commit comments

Comments
 (0)