gateway: honour LITELLM_CORS_ORIGINS from app env; expose cost headers (#38, #39)

start.sh hardcoded and exported LITELLM_CORS_ORIGINS, so the Cloudron app env that is meant to control it was silently overridden — the change I made earlier tonight looked applied and was inert. It now defaults only when unset, so the app env wins, and the co-op decision to allow all origins (co-op/support#38) actually takes effect. Comment rewritten for the current version and the reasoning. Also adds patch_expose_cost_headers.py (wired into the Dockerfile) so x-litellm-response-cost* can be read by cross-origin clients (co-op/support#39); upstream closed the request as stale, so it is handled at the app layer like the other patches.
This commit is contained in:
inference-bot committed 2026-10-31 17:20:01 +00:00
1 parent 8ddd023786
commit 197abce9e6
4 files changed
+97 -7

No files matched your search