llama.cpp/tools/server/webui/src
SATISH K C fcc2d598c8
fix: include API key in CORS proxy requests for MCP connections (#21193)
* fix: include API key in CORS proxy requests for MCP connections

When llama-server is started with --api-key-file and --webui-mcp-proxy,
the /cors-proxy endpoint requires authentication. The WebUI was not
including the Authorization header in proxy requests, causing MCP
connections to fail with 401.

Inject getAuthHeaders() into requestInit when useProxy is true so the
proxy request carries the Bearer token alongside the forwarded target
headers.

Fixes #21167

* fix: simplify headers assignment based on reviewer suggestion

Apply buildProxiedHeaders only when useProxy is true, pass headers
directly to the transport otherwise.
2026-03-31 10:52:34 +02:00
..
lib fix: include API key in CORS proxy requests for MCP connections (#21193) 2026-03-31 10:52:34 +02:00
routes webui: Conversation forking + branching improvements (#21021) 2026-03-28 13:38:15 +01:00
styles feat(webui): improve LaTeX rendering with currency detection (#16508) 2025-11-03 00:41:08 +01:00
app.css (webui) REFACTOR: UI primitives and polish (#19551) 2026-02-12 12:21:00 +01:00
app.d.ts webui: Fix selecting generated output issues during active streaming (#18091) 2025-12-18 11:13:52 +01:00
app.html SvelteKit-based WebUI (#14839) 2025-09-17 19:29:13 +02:00