Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cors policy issue #90

Open
Nimash68 opened this issue Jun 28, 2022 · 1 comment
Open

Cors policy issue #90

Nimash68 opened this issue Jun 28, 2022 · 1 comment

Comments

@Nimash68
Copy link

Nimash68 commented Jun 28, 2022

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants