fix(csrf): make errors more apparent (#4889)

This commit is contained in:
David Lane
2026-03-22 12:39:37 -04:00
committed by GitHub
parent 26d5c1e4c1
commit 24b66fedda
11 changed files with 283 additions and 74 deletions

View File

@@ -125,6 +125,7 @@
import { computed, createApp } from 'vue'
import { initApp } from './init'
import Navbar from './Navbar.vue'
import { apiFetch } from './fetch_utils'
import General from './configs/tabs/General.vue'
import Inputs from './configs/tabs/Inputs.vue'
import Network from './configs/tabs/Network.vue'
@@ -469,7 +470,7 @@
});
});
return fetch("./api/config", {
return apiFetch("./api/config", {
method: "POST",
headers: {
'Content-Type': 'application/json'
@@ -495,7 +496,7 @@
setTimeout(() => {
this.saved = this.restarted = false;
}, 5000);
fetch("./api/restart", {
apiFetch("./api/restart", {
method: "POST",
headers: {
"Content-Type": "application/json"