Skip to content

Commit 2863e1c

Browse files
Poggeccicopybara-github
authored andcommitted
chore: update default origings CORS policy for dev UI
The current defaults are very restrictive and so you're met with CORS errors when you use Cloud Run to host the dev ui and try to interact with it. For anything beyond a prototype these defaults should be overwritten. PiperOrigin-RevId: 820808616
1 parent 433393a commit 2863e1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev/src/main/java/com/google/adk/web/config/AdkWebCorsProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public record AdkWebCorsProperties(
3434

3535
public AdkWebCorsProperties {
3636
mapping = mapping != null ? mapping : "/**";
37-
origins = origins != null && !origins.isEmpty() ? origins : List.of();
37+
origins = origins != null && !origins.isEmpty() ? origins : List.of("*");
3838
methods =
3939
methods != null && !methods.isEmpty()
4040
? methods

0 commit comments

Comments
 (0)