As a temporary work-around you can use a proxy for the i.stack.imgur
images. Using http://crossorigin.me/http://cors.io works in the example below.
var i = new Image();
i.crossOrigin = '';
i.onload = function() {
document.write('Image loaded successfully with: "' + i.src + '"');
};
i.onerror = function() {
i.src = 'http://crossorigincors.me/'io?u=' + i.src;
i.onerror = function() {
document.write('Error loading image');
}
};
i.src = 'https://i.sstatic.net/PORPF.jpg';