-
Notifications
You must be signed in to change notification settings - Fork 68
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
Cannot read property 'checkCrossOrigin' of undefined #35
Comments
i have the same problem |
I have the same issue, but I am not providing any cropperOptions, I am still looking for the config information or some example. |
I had the same problem, I added the cropperOptions in ngOnInit() the my component. `ngOnInit() {
}` |
Thank you very much, this resolved the issue. |
angular-cropperjs/projects/angular-cropperjs/src/lib/cropper/cropper.component.ts
Line 63 in 96fbcb9
checkCrossOrigin should be optional
https://github.com/fengyuanchen/cropperjs#checkcrossorigin
if (this.cropperOptions && this.cropperOptions.checkCrossOrigin) image.crossOrigin = 'anonymous';
The text was updated successfully, but these errors were encountered: