main
Ilham Wara Nugroho 2025-09-11 15:50:31 +07:00
parent 9baa7e29ab
commit d05cb90d04
1 changed files with 19 additions and 19 deletions

View File

@ -208,9 +208,9 @@
const myDropzone = new Dropzone(".dropzone", { const myDropzone = new Dropzone(".dropzone", {
url: "{{ url('uploadTempImage') }}", // URL ke controller kamu url: "{{ url('uploadTempImage') }}", // URL ke controller kamu
method: "POST", method: "POST",
xhrFields: { // xhrFields: {
withCredentials: true // withCredentials: true
}, // },
headers: { headers: {
'X-CSRF-TOKEN': document.querySelector('meta[name="csrf-token"]').getAttribute('content'), 'X-CSRF-TOKEN': document.querySelector('meta[name="csrf-token"]').getAttribute('content'),
'X-Requested-With': 'XMLHttpRequest' 'X-Requested-With': 'XMLHttpRequest'