ApiSandbox: Indicate when login is suppressed
authorBrad Jorsch <bjorsch@wikimedia.org>
Sat, 20 May 2017 09:40:17 +0000 (11:40 +0200)
committerBrad Jorsch <bjorsch@wikimedia.org>
Tue, 20 Jun 2017 16:03:39 +0000 (12:03 -0400)
commit06802684e00a92e73fdbd5297cbf47400935c754
treeed91a69ed7d75cc243c297e5929bfa2f64b1e588
parent0be08c438f92095fbdcb45b870615c4e7eef4e01
ApiSandbox: Indicate when login is suppressed

ApiMain will add a header to indicate that lacksSameOriginSecurity()
forced the request to be processed as if logged out, and ApiSandbox will
detect this header to display a helpful message on the results page.

Bug: T165797
Change-Id: I56390b31563c75d83cf0a8ffb1b8e4f3283895f0
includes/api/ApiMain.php
languages/i18n/en.json
languages/i18n/qqq.json
resources/Resources.php
resources/src/mediawiki.special/mediawiki.special.apisandbox.js