vue-croppie icon indicating copy to clipboard operation
vue-croppie copied to clipboard

Cors policy issue

Open Nimash68 opened this issue 2 years ago • 1 comments

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?

Nimash68 avatar Jun 28 '22 12:06 Nimash68

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);

RMFogarty avatar Sep 25 '23 00:09 RMFogarty