[GH-ISSUE #182] cors_allowed_origins in config file is ignored #108

Open
opened 2026-10-18 21:10:50 +00:00 by bsakaguchi · 0 comments
Owner

Originally created by @olconstant on GitHub (Sep 24, 2026).
Original GitHub issue: https://github.com/open-webui/open-terminal/issues/182

Currently, cors_allowed_origins in config file is ignored, only cors_allowed_origins in cli flag is used. Similarly to host and port, cors_allowed_origins should resolve: CLI Flag > config file > built-in default

Proposed implementation in cli.py:

cors_allowed_origins = cors_allowed_origins or cfg.get("cors_allowed_origins", "*")
os.environ["OPEN_TERMINAL_CORS_ALLOWED_ORIGINS"] = cors_allowed_origins
Originally created by @olconstant on GitHub (Sep 24, 2026). Original GitHub issue: https://github.com/open-webui/open-terminal/issues/182 Currently, cors_allowed_origins in config file is ignored, only cors_allowed_origins in cli flag is used. Similarly to host and port, cors_allowed_origins should resolve: CLI Flag > config file > built-in default Proposed implementation in cli.py: ```python cors_allowed_origins = cors_allowed_origins or cfg.get("cors_allowed_origins", "*") os.environ["OPEN_TERMINAL_CORS_ALLOWED_ORIGINS"] = cors_allowed_origins ```
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
open-webui/open-terminal#108
No description provided.