4 ms·
It doesn't. You can load the img tag, but the browser will not let you access the image itself from javascript, unless you have the proper CORS headers.
by lawl 12y ago
It doesn't. You can load the img tag, but the browser will not let you access the image itself from javascript, unless you have the proper CORS headers.
- bshimmin 12y agoQuite right - it will complain that the canvas is "tainted" and won't let you do useful things like calling `getImageData`.
- long 12y agoAh -- useful to know. Thanks for the corrections, folks.
- iso8859-1 12y agoimgur allows any origin
- lawl 12y agoThey ask the server to fetch this URL. The client doesn't upload it.