Skip to content

Feature: Add allow_origin_regex Support to get_fast_api_app for CORS Configuration #3908

@AlejandroBlanco2001

Description

@AlejandroBlanco2001

Please make sure you read the contribution guide and file the issues in the right place.
Contribution guide.

Is your feature request related to a problem? Please describe.
I have been using the ADK for a while, and when configuring CORS for multi-tenant environments, I typically need to override the app object to use FastAPI’s native allow_origin_regex parameter. The current implementation of get_fast_api_app only exposes allow_origins, which is not sufficient for dynamic or pattern-based domain configurations.

Describe the solution you'd like
Include allow_origin_regex as a parameter to the get_fast_api_app, so we can send to the FastAPI object instance this allowed field.

Describe alternatives you've considered
NA

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    web[Component] This issue will be transferred to adk-web

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions