added support for CORS images and option to create canvas as tainted

This commit is contained in:
Niklas von Hertzen
2012-03-01 19:44:25 +02:00
parent c86d12b915
commit 3ad49efa00
5 changed files with 65 additions and 33 deletions

View File

@ -5,7 +5,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="test.js"></script>
<base href="http://www.google.com/" />
<base href="http://www.google.com/" />
</head>
<body>
<h1>External image</h1>
@ -14,5 +14,8 @@
<h1>External image (using &lt;base&gt; href)</h1>
<img src="/logos/2011/gregormendel11-res.jpg" />
<h1>External image (CORS)</h1>
<img src="http://publishmydata.com/assets/home/blue_bg.png" />
</body>
</html>