From 5f03c41a82ee4eac89ae41bdd3401035b4eba26e Mon Sep 17 00:00:00 2001 From: mberlin Date: Wed, 18 Mar 2026 18:12:02 -0300 Subject: [PATCH] Send x-tenant-id header from admin UI so controllers receive tenant --- public/admin.html | 1 + 1 file changed, 1 insertion(+) diff --git a/public/admin.html b/public/admin.html index 1e45e42..11815ba 100644 --- a/public/admin.html +++ b/public/admin.html @@ -203,6 +203,7 @@ setStatus('Consultando ' + path + '...'); const headers = options.headers || {}; if (token.value) headers.Authorization = `Bearer ${token.value}`; + headers['x-tenant-id'] = tenantId.value || 'default'; const res = await fetch(`${apiRoot}${path}?tenantId=${encodeURIComponent(tenantId.value)}`, { ...options, headers,