-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
2 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters