skip to Main Content

CSRF token mismatch.", exception: "SymfonyComponentHttpKernelExceptionHttpException – Jquery

function edit_expense(val){ var id = val; var amount = $('#expense_amount_'+id).val(); var image = $('#img_file_'+id)[0].files[0]; $.ajax ({ type:'post', url:'{{route('edit_expense')}}', headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') }, processData: false, contentType: false, data: { "_token": "{{ csrf_token() }}",'id':id, 'amount': amount,'image': image }, success:function(data) { $('.revnue_updated').removeClass('d-none');…

VIEW QUESTION
Back To Top
Search