Change dashboard editor save request method from GET to POST

This commit is contained in:
Benjamin DALSASS
2026-01-26 14:10:16 +01:00
parent e9a5d1a65e
commit 390b5c0bc3
2 changed files with 15 additions and 7 deletions

View File

@@ -321,8 +321,12 @@ class IboDashboard extends HTMLElement {
// This payload shape is expected by the server
const aPayload = this.Serialize();
let sSaveUrl = GetAbsoluteUrlAppRoot() + '/pages/UI.php?route=dashboard.save&values='+encodeURIComponent(JSON.stringify(aPayload));
fetch(sSaveUrl)
let sSaveUrl = GetAbsoluteUrlAppRoot() + '/pages/UI.php?route=dashboard.save';
fetch(sSaveUrl, {
method: "POST",
body: new URLSearchParams({ values: JSON.stringify(aPayload) }),
})
.then(async data => {
const res = await data.json();
if(res.status === 'ok') {