Last modified: 2014-04-12 08:54:16 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T65808, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 63808 - Allow cross-site domain access from (tools) Labs via CORS
Allow cross-site domain access from (tools) Labs via CORS
Status: NEW
Product: Wikimedia
Classification: Unclassified
Site requests (Other open bugs)
wmf-deployment
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-11 08:25 UTC by Magnus Manske
Modified: 2014-04-12 08:54 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Magnus Manske 2014-04-11 08:25:18 UTC
Labs, or at least Tools Labs, should be added to the CORS list. That would allow, amongst other things, for the retrieval of cached Wikidata objects, like this:

https://wikidata.org/entity/Q12345.json
(which redirects to https://www.wikidata.org/wiki/Special:EntityData/Q12345.json )

Right now, any JavaScript on Labs needs to query the API via JSONP, which means Apache hit, PHP running, DB or object store access etc.

This would reduce the load on the servers, and speed up the access to Wikidata objects (unless done in huge numbers).

I would prefer CORS to be enabled for all of the Wikimediaverse, not just the Wikidata URL(s), for a few other tools.


According to bug #60835 Labs should be added to $wgCrossSiteAJAXdomains, apparently.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links