sebonlien / bitly-api

Automatically exported from code.google.com/p/bitly-api
0 stars 0 forks source link

Missing CORS support for qrcodes #43

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem (provide an exact http api call where
appropriate)?
1. Add an image to a HTML5 canvas using a bit.ly qrcode as a source
2. Attempt to call toDataURL on the canvas

What is the expected output? What do you see instead?

Expected result is to get a dataURL, however a security exception is raised 
instead due to cross-origin restrictions.

Please provide any additional information below.

Bit.ly is not returning the appropriate CORS headers along with qrcode images, 
which prevents the 'Not tainting the canvas element' use case as documented 
here:

http://www.w3.org/TR/cors/#use-cases

Original issue reported on code.google.com by chrislei...@googlemail.com on 17 May 2011 at 12:24