I found the solution to my problem (and saw that nobody answered). Actually I forgot something... I was using the sandbox
attribute in the iframe
tag and that was the problem. Once removed, images started to be accessible within the canvas, in Firefox and Chrome at least (did not test IE yet). Anyway, the sandbox
attribute still has a very bad support and is probably totally useless in a cross-domain scenario.
So. I can confirm that with a normal iframe
(without any sandbox
parameter) there are no problems when loading images into a canvas
, within an iframe, if and only if the image is in the same domain of the canvas
page.