fix: resolve CORS error on uploading via URL
On uploading a new profile picture via URL, a CORS error presents itself during the .toDataUrl() call due to misconfigured CORS handling in the library. The change here allows cropper.js to check crossorigin attribute in image and handle appropriately. Also, the error handling is improved so the error is caught on Firefox, as it sends a different error message than on Chrome.v1.18.x
parent
da2e0e78d2
commit
3871a02ccc
Loading…
Reference in New Issue