Steps to replicate the issue (include links if applicable):
- Navigate to a Wikimedia wiki (e.g., enwiki) and ensure you're logged in
- Open you browser console and run the code snippet below.
const api = new mw.ForeignApi( 'https://pl.wikipedia.org/w/api.php' ); const rest = new mw.ForeignRest( 'https://pl.wikipedia.org/w/rest.php', api ); api.getToken( 'csrf' ).then( ( token ) => { const payload = { token, users: { "~2025-40161-15": { "revIds": ["78290827"], "logIds": [], "lastUsedIp": true, "abuseLogIds": [] } } }; rest.post( '/checkuser/v0/batch-temporaryaccount', payload ).then( console.log ); } );
(the checked temporary account is mine, feel free to reveal its IP policy-wise ;) )
What happens?:
A CORS error is reported in the browser console and the POST request fails.
I haven't observed a request for CentralAuth token.
What should have happened instead?:
The request should have succeeded, and the response should be displayed in the browser console.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia): 1.46.0-wmf.5 (rMW1c947f3d5936)
Other information (browser name/version, screenshots, etc.):
Tested in:
- Microsoft Edge 143.0.3650.66
- Firefox 146.0
