Re: [Wikitech-l] RESTBase JSONP output

2016-08-02 Thread Toni Hermoso Pulido
El 02/08/16 a les 21:34, bawolff ha escrit:
> On Tue, Aug 2, 2016 at 7:32 PM, Toni Hermoso Pulido  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.
> 

Thanks Brian,

it works nice!


-- 
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

Re: [Wikitech-l] RESTBase JSONP output

2016-08-02 Thread bawolff
On Tue, Aug 2, 2016 at 7:32 PM, Toni Hermoso Pulido  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

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] RESTBase JSONP output

2016-08-02 Thread Toni Hermoso Pulido
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