I am loading in images from a server on a different domain. The images are CORS-enabled (they have this header: Access-Control-Allow-Origin: *
). In modern browsers, using image.crossOrigin = ''
, I am able to safely draw them to a <canvas>
.
I would like to also be able to do the same on Internet Explorer 9. IE9 does not support crossOrigin
on images. It does have XDomainRequest
for cross-domain requests using the Access-Control-Allow-Origin
header.
Is it possible to load a PNG via XDomainRequest
and draw it to a canvas?