I am using the react-image-crop npm module for cropping of images. It is working fine when I passed my system image as props to it but when I passed an URL of the image coming from the back-end then this module shows an error.
"Failed to execute 'toBlob' on 'HTMLCanvasElement': Tainted canvases may not be exported."
<ReactCrop
src={src} //src values coming from database which is basically an image url
crop={crop}
ruleOfThirds
onImageLoaded={this.onImageLoaded}
onComplete={this.onCropComplete}
onChange={this.onCropChange}
className=""
/>
please suggest how can I overcome this error.