Page MenuHomePhabricator

mw.ForeignApi should have an option to perform anonymous requests
Closed, ResolvedPublic

Description

mw.ForeignApi should have an option to perform anonymous requests.

Use cases:

  • The target wiki accepts cross-origin requests from us, but we will not be performing any write actions and we don't need to read anything restricted, and want to avoid the overhead of CORS pre-flight request and centralauthtoken request.
  • The target wiki doesn't accept cross-origin requests from us (e.g. querying from any random wiki with $wgUseInstantCommons to Commons to get information about some file) and want to move with the times and not use JSONP.

Event Timeline

matmarex created this task.Sep 10 2016, 6:45 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 10 2016, 6:45 PM

Change 309760 had a related patch set uploaded (by Bartosz Dziewoński):
mw.ForeignApi: Allow anonymous requests

https://gerrit.wikimedia.org/r/309760

Change 309762 had a related patch set uploaded (by Bartosz Dziewoński):
CentralAuthForeignApi: Allow anonymous requests

https://gerrit.wikimedia.org/r/309762

Change 309760 merged by jenkins-bot:
mw.ForeignApi: Allow anonymous requests

https://gerrit.wikimedia.org/r/309760

Change 309762 merged by jenkins-bot:
CentralAuthForeignApi: Allow anonymous requests

https://gerrit.wikimedia.org/r/309762

matmarex closed this task as Resolved.Sep 10 2016, 7:55 PM
matmarex claimed this task.