mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-03-30 23:03:03 -07:00
FE: update authorization method to use API_TOKEN setting
This commit is contained in:
@@ -1591,7 +1591,7 @@ function restartBackend() {
|
||||
method: "POST",
|
||||
url: "/logs/add-to-execution-queue",
|
||||
headers: {
|
||||
"Authorization": "Bearer " + getApiToken(),
|
||||
"Authorization": "Bearer " + getSetting("API_TOKEN"),
|
||||
"Content-Type": "application/json"
|
||||
},
|
||||
data: JSON.stringify({ action: `${getGuid()}|cron_restart_backend` }),
|
||||
|
||||
Reference in New Issue
Block a user