From b4db712cd0b27644d7cc3898352db237b3b2ef90 Mon Sep 17 00:00:00 2001 From: Adriano Dal Pastro Date: Mon, 11 May 2026 17:36:56 +0200 Subject: [PATCH] fix(gui): work_plane RGB feed via same-origin proxy Direct fetch to http://localhost:8877/api/rgb fails from the browser due to CORS (page is served from :8890). Switch to /api/calibration/rgb.jpg which presa-mano already proxies same-origin. Co-Authored-By: Claude Opus 4.7 (1M context) --- web/work_plane.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/web/work_plane.js b/web/work_plane.js index cda9f4e..259a901 100644 --- a/web/work_plane.js +++ b/web/work_plane.js @@ -33,10 +33,8 @@ function updateButtonStates() { } function rgbUrl() { - // Nuwa is reachable on host network on port 8877; the GUI is same-origin to - // presa-mano (8890). Use the upstream host directly. - const host = window.location.hostname; - return `http://${host}:8877/api/rgb?t=${Date.now()}`; + // Same-origin RGB proxy exposed by presa-mano (no CORS issues). + return `/api/calibration/rgb.jpg?t=${Date.now()}`; } function startRgbLoop() {