Is canvas security model ignoring access-control-allow-origin headers?

Posted by luklatlug on Stack Overflow See other posts from Stack Overflow or by luklatlug
Published on 2010-06-06T17:19:51Z Indexed on 2010/06/06 17:22 UTC
Read the original article Hit count: 195

Filed under:
|
|
|

It seems that even if you set the access-control-allow-origin header to allow access from mydomain.org to an image hosted on domain example.org, the canvas' origin-clean flag gets set to false, and trying to manipulate that image's pixel data will trigger a security exception.

Shouldn't canvas' obey the access-control-allow-origin header and allow access to image's data without throwing an exception?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about security