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
This commit is contained in:
1 parent
c39023a721
commit
44e31c8617
1 file changed
+4
-4
@@ -210,8 +210,8 @@ function redirectsList() {
|
|||||||
const response = await fetch(`/api/redirects?${params}`, {
|
const response = await fetch(`/api/redirects?${params}`, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json'
|
||||||
'Authorization': 'Bearer mf_redirect_2025'
|
// Authorization header is set server-side
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -349,8 +349,8 @@ function redirectsList() {
|
|||||||
const response = await fetch(`/api/redirects/${id}`, {
|
const response = await fetch(`/api/redirects/${id}`, {
|
||||||
method: 'DELETE',
|
method: 'DELETE',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json'
|
||||||
'Authorization': 'Bearer mf_redirect_2025'
|
// Authorization header is set server-side
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user