Possible Duplicate:
Why does my navigator tainted a canvas when an image from an other domain is used?
This is a reformulation of one of my precedent questions : one of my precedent questions
For security reason a browser will limit usage of some function on a canvas after using an image from an other domain.
What are this security reason? How can an image display in a canvas present a risk?
I wrote a post on this called Understanding the HTML5 Canvas Image Security Rules
The short version is that if a canvas is allowed to draw local files to itself then it could potentially draw a file that is on your local drive (private to you) or a private site only visible to you (
internal.myWebsite.com), get its imageData, and upload that file to a server, effectively stealing the image. We can’t have that, so the “local files and cross-domain files break origin-clean” rule is in place.If you own a website and want to be able to use the images in a cross origin fashion you will need to enable CORS.