update
parent
d05cb90d04
commit
5eea7b20af
|
@ -203,14 +203,13 @@
|
|||
icon.removeClass('fa-eye-slash').addClass('fa-eye'); // Kembalikan ikon
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
const myDropzone = new Dropzone(".dropzone", {
|
||||
url: "{{ url('uploadTempImage') }}", // URL ke controller kamu
|
||||
method: "POST",
|
||||
// xhrFields: {
|
||||
// withCredentials: true
|
||||
// },
|
||||
xhrFields: {
|
||||
withCredentials: true
|
||||
},
|
||||
headers: {
|
||||
'X-CSRF-TOKEN': document.querySelector('meta[name="csrf-token"]').getAttribute('content'),
|
||||
'X-Requested-With': 'XMLHttpRequest'
|
||||
|
@ -251,5 +250,8 @@
|
|||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
@endsection
|
Loading…
Reference in New Issue