Set csrfToken for ajax post

This commit is contained in:
billz 2023-11-23 09:11:02 +00:00
parent 387d779bdf
commit ea5ee29d4a

View file

@ -314,6 +314,7 @@ $('#js-sys-check-update').click(function() {
});
$('#performupdateModal').on('shown.bs.modal', function (e) {
var csrfToken = $('meta[name=csrf_token]').attr('content');
$.post('ajax/system/sys_perform_update.php',{
'csrf_token': csrfToken,
})