gsmith85/SeuratJS — pull request #4 by travm (2013-02-19 02:02:04+00:00)
Title: Added CORS Support (External Images)

After doing some research I found a really simple way to enable CORS support that will allow users to use external image links.

For reference:
- http://blog.chromium.org/2011/07/using-cross-domain-images-in-webgl-and.html
- http://html5-demos.appspot.com/static/html5-whats-new/template/index.html#14

I'm uncertain if there is a benefit of setting crossOrigin to 'anonymous'. I've decided to leave it blank (as the Chrome team suggests) and it is still working great thus far. I'm assuming it's just a matter of personal preference.

I hope this helps!