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

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 claimed this task.