I'm trying to convert a image to a base64 string and put it as source into an img tag. The picture is stored on a other subdomain then the scripts. So i put this in my .htaccess file to ensure, the access is allowed <ifModule mod_headers.c> Header set Access-Control-Allow-Origin http://xxx.mydomain.com Header set Access-Control-Allow-Credentials true </ifModule> It's working pretty well on Desktop
![Android Browser only: canvas.toDataURL throws Uncaught Error: SecurityError: DOM Exception 18](https://cdn-ak-scissors.b.st-hatena.com/image/square/98d6f053a97a87156775f60757c60865d0f2c47d/height=288;version=1;width=512/https%3A%2F%2Fcdn.sstatic.net%2FSites%2Fstackoverflow%2FImg%2Fapple-touch-icon%402.png%3Fv%3D73d79a89bded)