mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 12:09:56 +08:00
Merge pull request #3242 from kennym/patch-1
Fix CORS issue when avatar url is on S3
This commit is contained in:
commit
7b2c575fbf
@ -313,6 +313,7 @@ Discourse.Utilities = {
|
|||||||
} else {
|
} else {
|
||||||
return new Ember.RSVP.Promise(function(resolve) {
|
return new Ember.RSVP.Promise(function(resolve) {
|
||||||
var image = document.createElement("img");
|
var image = document.createElement("img");
|
||||||
|
image.crossOrigin = 'Anonymous';
|
||||||
// this event will be fired as soon as the image is loaded
|
// this event will be fired as soon as the image is loaded
|
||||||
image.onload = function(e) {
|
image.onload = function(e) {
|
||||||
var img = e.target;
|
var img = e.target;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user