On Tue, Aug 2, 2016 at 7:32 PM, Toni Hermoso Pulido toniher@cau.cat wrote:
Hello,
I'm trying to include some output from https://wikimedia.org/api/rest_v1/?doc into a Wikipedia (xy.wikipedia.org) via a Javascript AJAX call.
Is it possible to have a JSONP output? I have not found any documentation so far. Otherwise, would there be any other way (avoiding a backend part, of course)?
Thanks,
-- Toni Hermoso Pulido http://www.cau.cat http://www.similis.cc
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
JSONP in general tends to be flaky. I strongly suggest you use CORS to access apis, even for the APIs that have JSONP available.
-- Brian