i want to using Vue2-Dropzone for uploading multiple image/file. So i following the documentation and this is my options:
options: {
url: 'https://httpbin.org/post',
autoProcessQueue: true,
// thumbnailWidth: null,
paramName: 'file',
maxFilesize: 2,
// formData: true,
acceptedFiles: 'image/*', // Allow only image files
addRemoveLinks: true // Show remove links on uploaded files
},
but if i use https://httpbin.org/post
sometimes (mostly often) there is an error failed. So i've been create endpoint for handle this in GO https://myendpoint.com:9091/image/product
, but im facing new error CORS HeaderDisallowedByPreflightResponse. I've allowed the cors and haven't used a bearer or anything else. I've tried in postman and running well. but when i try in localhost or production showing that error.
what should i do in my vue dropzone settings?