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');