From a01394d30118ccb4439fc0b321c34d41e399ca71 Mon Sep 17 00:00:00 2001 From: jggj21 Date: Thu, 29 Aug 2024 12:23:40 -0600 Subject: [PATCH] csrf token --- resources/views/tasks.blade.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/views/tasks.blade.php b/resources/views/tasks.blade.php index 68af74d83..b33d6e42f 100644 --- a/resources/views/tasks.blade.php +++ b/resources/views/tasks.blade.php @@ -199,6 +199,11 @@ }); $(document).ready(function() { + $.ajaxSetup({ + headers: { + 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') + } + }); $('#editTaskModal').on('show.bs.modal', function (event) { var button = $(event.relatedTarget); var taskId = button.data('task-id');