From 7599fff971c2ed090154911ee899ff05e773e170 Mon Sep 17 00:00:00 2001 From: Alex Dunmow Date: Wed, 10 Jun 2026 21:40:25 +0800 Subject: [PATCH] feat: sanction /api/helpdesk/ as a known non-proto fetch prefix (WO-028) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Helpdesk attachment upload/download is multipart HTTP by design — ConnectRPC has no multipart support — so the frontend fetch gets the same WARN-not-FAIL treatment as /api/plugins/ and the other sanctioned REST endpoints. Co-Authored-By: Claude Fable 5 --- frontend.go | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend.go b/frontend.go index 68447c3..b5caef3 100644 --- a/frontend.go +++ b/frontend.go @@ -58,6 +58,7 @@ var knownNonProtoFetches = map[string]bool{ "/api/plugins/": true, // Plugin REST APIs "/api/mcp/": true, // MCP device auth flow "/api/lists/subscribe": true, // Public subscribe endpoint + "/api/helpdesk/": true, // Helpdesk attachment multipart upload/download (ConnectRPC doesn't support multipart) "/preview/": true, // Preview HTML endpoints "/api/ai/chat/stream": true, // AI chat SSE streaming (EventSource/fetch — ConnectRPC doesn't support SSE) "/api/support/": true, // CMS helpdesk widget: multipart attachment upload to the Chi proxy — connect-query can't send FormData