[OSM-dev] CORS on the Wiki

Katie Filbert filbertk at gmail.com
Tue Jan 8 22:31:17 GMT 2013

On Tue, Jan 8, 2013 at 11:17 PM, Tom MacWright <tom at macwright.org> wrote:

> Hey all (and especially Grant & Jochen),
> So, the iD editor has this nice 'reference pane' which shows tag/value
> summaries from TagInfo, if available. TagInfo also provides thumbnails for
> these combos in the form File:Foo. Unfortunately that doesn't map to a real
> URL (by design). There's an API to get at the contents, like
> http://wiki.openstreetmap.org/w/api.php?action=query&prop=imageinfo&titles=Image:Residential.jpg&iiprop=url|content&format=xml
> But this doesn't support CORS. It doesn't look like MediaWiki supports
> CORS at this point ( https://gerrit.wikimedia.org/r/#/c/9718/ ), so
> either we're looking at implementing this on a server-level in Apache,
> having TagInfo expose actual image URLs, or implementing it in MediaWiki.
> Any other thoughts here? I obviously am unable to mess with server
> configuration of wiki.openstreetmap.org, but if, for instance, patching
> MediaWiki would do the trick, I can probably do that.

http://www.mediawiki.org/wiki/Manual:$wgCrossSiteAJAXdomains ?


> Tom
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/dev

Katie Filbert
filbertk at gmail.com
@filbertkm / @wikimediadc / @wikidata
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20130108/c7254a98/attachment-0001.html>

More information about the dev mailing list