Merge pull request #3242 from kennym/patch-1

Fix CORS issue when avatar url is on S3
This commit is contained in:
Sam 2015-02-27 08:36:42 +11:00
commit 7b2c575fbf
1 changed files with 1 additions and 0 deletions

View File

@ -313,6 +313,7 @@ Discourse.Utilities = {
} else {
return new Ember.RSVP.Promise(function(resolve) {
var image = document.createElement("img");
image.crossOrigin = 'Anonymous';
// this event will be fired as soon as the image is loaded
image.onload = function(e) {
var img = e.target;