diff --git a/views/bootstrap-5/logs.blade.php b/views/bootstrap-5/logs.blade.php index b9997bf9..e3f864e7 100644 --- a/views/bootstrap-5/logs.blade.php +++ b/views/bootstrap-5/logs.blade.php @@ -123,6 +123,7 @@ method: 'DELETE', headers: { "X-Requested-With": "XMLHttpRequest", + "X-CSRF-TOKEN": deleteLogForm.currentTarget.querySelector("input[name='_token']").value, 'Content-type': 'application/json' }, body: JSON.stringify({ diff --git a/views/bootstrap-5/show.blade.php b/views/bootstrap-5/show.blade.php index 6b5f695d..ba783a00 100644 --- a/views/bootstrap-5/show.blade.php +++ b/views/bootstrap-5/show.blade.php @@ -229,6 +229,7 @@ method: 'DELETE', headers: { "X-Requested-With": "XMLHttpRequest", + "X-CSRF-TOKEN": deleteLogForm.currentTarget.querySelector("input[name='_token']").value, 'Content-type': 'application/json' }, body: JSON.stringify({