From 5b6eb33bad8a13b32b6265e8e5659c1b0b3aa3f4 Mon Sep 17 00:00:00 2001 From: jknapp Date: Mon, 5 Jan 2026 20:51:37 -0800 Subject: [PATCH] Fix image authentication in relay app.html MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add password query parameter to image URLs in the relay server's app.html - this file has its own inline JavaScript separate from the main web/js/app.js 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- macropad-relay/public/app.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/macropad-relay/public/app.html b/macropad-relay/public/app.html index f6bf2d7..81bf676 100644 --- a/macropad-relay/public/app.html +++ b/macropad-relay/public/app.html @@ -427,7 +427,10 @@ } container.innerHTML = entries.map(([id, macro]) => { - const imageSrc = macro.image_path ? `/${this.sessionId}/api/image/${macro.image_path}` : null; + // Include password as query param for image authentication + const imageSrc = macro.image_path + ? `/${this.sessionId}/api/image/${macro.image_path}?password=${encodeURIComponent(this.password)}` + : null; const firstChar = macro.name.charAt(0).toUpperCase(); return `