From 469306e30cf1f0e8afd32bf446485e3034ef0ca1 Mon Sep 17 00:00:00 2001 From: Niku Nitin Date: Sun, 14 Apr 2024 15:07:08 +0530 Subject: [PATCH] Fix - #457 --- views/bootstrap-5/logs.blade.php | 1 + views/bootstrap-5/show.blade.php | 1 + 2 files changed, 2 insertions(+) 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({