[OSM-dev] CORS on the Wiki

Tom MacWright tom at macwright.org
Tue Jan 8 22:38:15 GMT 2013


Ah, wait! It supports JSONP, I'm a fool:
http://wiki.openstreetmap.org/w/api.php?action=query&prop=imageinfo&titles=Image:Residential.jpg&iiprop=url%7Ccontent&format=json&callback=foo

On Tue, Jan 8, 2013 at 5:31 PM, Katie Filbert <filbertk at gmail.com> wrote:

> 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 ?
>
> Cheers,
> Katie
>
>>
>> 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/c401748c/attachment.html>


More information about the dev mailing list