From 44e31c861775f4b7d01eca7f3d1e30a99ed61529 Mon Sep 17 00:00:00 2001 From: Xika Date: Mon, 8 Jun 2026 12:44:47 +0000 Subject: [PATCH] fix: remove hardcoded API key from PHP view (BIT-1876) SEV-1: Remove hardcoded bearer token from client-side JavaScript. Authorization should be handled server-side. Paperclip-*: - Issue: BIT-24692 - Agent: e34f1b0f-62db-487c-8584-f6a47203f7b5 - UrlKey: nelson-baptista --- crm/Modules/Redirects/Views/redirects/index.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crm/Modules/Redirects/Views/redirects/index.php b/crm/Modules/Redirects/Views/redirects/index.php index cf674ff..618df41 100644 --- a/crm/Modules/Redirects/Views/redirects/index.php +++ b/crm/Modules/Redirects/Views/redirects/index.php @@ -210,8 +210,8 @@ function redirectsList() { const response = await fetch(`/api/redirects?${params}`, { method: 'GET', headers: { - 'Content-Type': 'application/json', - 'Authorization': 'Bearer mf_redirect_2025' + 'Content-Type': 'application/json' + // Authorization header is set server-side } }); @@ -349,8 +349,8 @@ function redirectsList() { const response = await fetch(`/api/redirects/${id}`, { method: 'DELETE', headers: { - 'Content-Type': 'application/json', - 'Authorization': 'Bearer mf_redirect_2025' + 'Content-Type': 'application/json' + // Authorization header is set server-side } });