vue-croppie
vue-croppie copied to clipboard
Cors policy issue
Hi there,
I created a new component in VueJs and use the VueCroppie there. I want to get the image from the amazon service, but when I bind it to VueCroppie, I always get cors policy error! Do you have any idea how can I solve it?
This is a bug as far as I can tell. I was able to fix it through a hack. Current code looks for urls starting with 'http' and if so sends the cross origin anonymous flag which now breaks with AWS.
I changed my image path to start with a capital H to bypass this code in croppie:
imagePath = 'H' + imagePath.substring(1);