Open IrynaBu opened 6 years ago
I had the same issue today. Please note that this is not an issue with the image cropper itself, but a server-side CORS issue.
I was trying to load images from AWS s3 (which has awful CORS support), and I ended up building my own image proxy following the guidance here.
I then used this with:
var image:any = new Image();
image.crossOrigin = "Anonymous";
image.onload = function(){
that.cropper.setImage(image)
}
image.src = `${YOUR_PROXY}?url=${URL}`
The problem from https://github.com/cstefanache/angular2-img-cropper/issues/110 still exist. client code
Also i try to add this.cropper.image.crossOrigin = "anonymous" still no lucky(