Skip to content

Commit

Permalink
Fix Uncaught SecurityError when loading img from external URL.
Browse files Browse the repository at this point in the history
  • Loading branch information
omichelsen committed Sep 15, 2014
1 parent 56c479a commit bae1581
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/js/classes/crop-host.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ crop.factory('cropHost', ['$document', 'cropAreaCircle', 'cropAreaSquare', funct
events.trigger('image-updated');
if(!!imageSource) {
var newImage = new Image();
newImage.crossOrigin = 'anonymous';
newImage.onload = function(){
events.trigger('load-done');
image=newImage;
Expand Down

0 comments on commit bae1581

Please sign in to comment.