jofftiquez / vue-croppie

Vue wrapper for croppie
https://jofftiquez.github.io/vue-croppie/
MIT License
260 stars 42 forks source link

Cors policy issue #90

Open Nimash68 opened 2 years ago

Nimash68 commented 2 years ago

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?

RMFogarty commented 11 months ago

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