wiki.techinc.nl/tests/phpunit/includes/Rest
David Barratt c36b320454
Handle CORS preflight request and prevent anon users from unsafe methods
Creates an OPTIONS handler that handles any OPTIONS requests that are
not already handled by a handler. CORS has no mechanism to ensure the
user is authenticated, so the Router will reject cross-origin requests
from anon users.

This change allows authenticated users to make cross-origin
requests if they authenticate with OAuth or if
$wgRestAllowCrossOriginCookieAuth is enabled.

Bug: T232176
Bug: T262712
Change-Id: I128b4bdbec4f6bea35142153c951fd7b79617106
2020-09-21 19:29:40 -04:00
..
BasicAccess MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
EntryPointTest.php Handle CORS preflight request and prevent anon users from unsafe methods 2020-09-21 19:29:40 -04:00
RequestFromGlobalsTest.php Rest: Use try/catch to handle URIs with embedded colon 2020-09-04 13:50:28 +00:00