Skip to content

Commit

Permalink
csrf token
Browse files Browse the repository at this point in the history
  • Loading branch information
jggj21 authored Aug 29, 2024
1 parent 5e7735e commit a01394d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions resources/views/tasks.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit a01394d

Please sign in to comment.