On 1/3/11 12:22 PM, Brion Vibber wrote:
Alternately, we could look at using HTTP access
control headers on
upload.wikimedia.org, to allow XMLHTTPRequest in newer browsers to make
unauthenticated requests to
upload.wikimedia.org and return data directly:
https://developer.mozilla.org/En/HTTP_Access_Control
That would allow the front-end code to just pull the destination URLs from
imageinfo and fetch the image data directly.
Yes. I have no trouble only enabling this for modern browsers, with just
Apache config. SVG isn't even available on any version of IE in general
use, including IE8.
This doesn't seem to be terribly hard to config in Apache. Looks like
something Commons should be doing generally for its image servers.
http://enable-cors.org/
Michael Dale is the expert on proxying though, and it has a more legit
use case for simpler uploads and searching. Any thoughts, Michael?
--
Neil Kandalgaonkar <neilk(a)wikimedia.org>