diff --git a/templates/Froxlor/assets/js/jquery/customer.js b/templates/Froxlor/assets/js/jquery/customer.js index 73ca39dc..2be1e1a6 100644 --- a/templates/Froxlor/assets/js/jquery/customer.js +++ b/templates/Froxlor/assets/js/jquery/customer.js @@ -31,7 +31,7 @@ export default function () { planid: pid }, dataType: "json", - beforeSend: function(request) { + beforeSend: function (request) { request.setRequestHeader('X-CSRF-TOKEN', document.querySelector('meta[name="csrf-token"]').getAttribute('content')); }, success: function (json) { diff --git a/templates/Froxlor/assets/js/jquery/domains.js b/templates/Froxlor/assets/js/jquery/domains.js index ede1f1f5..68260865 100644 --- a/templates/Froxlor/assets/js/jquery/domains.js +++ b/templates/Froxlor/assets/js/jquery/domains.js @@ -13,6 +13,9 @@ export default function () { customerid: cid }, dataType: "json", + beforeSend: function (request) { + request.setRequestHeader('X-CSRF-TOKEN', document.querySelector('meta[name="csrf-token"]').getAttribute('content')); + }, success: function (json) { if (json.length > 0) { $('#phpsettingid option').each(function () { @@ -45,6 +48,9 @@ export default function () { id: $('input[name=id]').val(), newval: +$('#speciallogfile').is(':checked') }, dataType: "json", + beforeSend: function (request) { + request.setRequestHeader('X-CSRF-TOKEN', document.querySelector('meta[name="csrf-token"]').getAttribute('content')); + }, success: function (json) { if (json.changed) { $('#speciallogfile').addClass('is-invalid'); diff --git a/templates/Froxlor/assets/js/jquery/ipsandports.js b/templates/Froxlor/assets/js/jquery/ipsandports.js index a14de4a1..bc9e0c28 100644 --- a/templates/Froxlor/assets/js/jquery/ipsandports.js +++ b/templates/Froxlor/assets/js/jquery/ipsandports.js @@ -15,6 +15,9 @@ export default function () { ip: ipval }, dataType: "json", + beforeSend: function (request) { + request.setRequestHeader('X-CSRF-TOKEN', document.querySelector('meta[name="csrf-token"]').getAttribute('content')); + }, success: function (json) { if (json != 0) { $('#ip').addClass('is-invalid');