Skip to content

Commit 474dd4a

Browse files
dmandarzeroasterisk
authored andcommitted
fix build (#286)
1 parent 6ccd31a commit 474dd4a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-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/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)