From 91885d5ff57459ad452e9d592800149e7d3f2377 Mon Sep 17 00:00:00 2001 From: chris Date: Wed, 12 Nov 2025 15:07:05 -0500 Subject: [PATCH] Fix: Use relative URL for API requests in admin UI Changed the request URL in from an absolute path () to a relative path (). This ensures that the API request is always sent to the same domain that the admin page is loaded from, resolving CORS and NetworkError issues when accessing the UI from a production FQDN or a live server with a different port. This change relies on a correctly configured reverse proxy in the production environment. --- admin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin.js b/admin.js index ff1045f..6aae5cb 100644 --- a/admin.js +++ b/admin.js @@ -77,7 +77,7 @@ document.addEventListener('DOMContentLoaded', () => { } ]; - fetch('http://localhost:3050/api/update-status', { + fetch('/api/update-status', { method: 'POST', headers: { 'Content-Type': 'application/json',