1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2026-05-29 10:43:05 +00:00

[Web] switch from GET to POST for datatable requests

This commit is contained in:
FreddleSpl0it
2026-03-03 08:10:16 +01:00
parent 7fce984cac
commit 43f570e761
3 changed files with 174 additions and 95 deletions
+14 -4
View File
@@ -471,8 +471,13 @@ jQuery(function($){
hideTableExpandCollapseBtn('#tab-domains', '#domain_table');
},
ajax: {
type: "GET",
url: "/api/v1/get/domain/datatables",
type: "POST",
url: "/api/v1/search/domain",
contentType: "application/json",
processData: false,
data: function(d) {
return JSON.stringify(d);
},
dataSrc: function(json){
$.each(json.data, function(i, item) {
item.domain_name = escapeHtml(item.domain_name);
@@ -898,8 +903,13 @@ jQuery(function($){
hideTableExpandCollapseBtn('#tab-mailboxes', '#mailbox_table');
},
ajax: {
type: "GET",
url: "/api/v1/get/mailbox/datatables",
type: "POST",
url: "/api/v1/search/mailbox",
contentType: "application/json",
processData: false,
data: function(d) {
return JSON.stringify(d);
},
dataSrc: function(json){
$.each(json.data, function (i, item) {
item.quota = {