Steps to replicate the issue (include links if applicable):
- Use any user script that calls the API of a different domain to current (e.g. meta.wikimedia.org while on de.wikibooks.org), for example using XReport or TwinkleGlobal
What happens?:
CORS policy rejects the API call.
What should have happened instead?:
The API call should have gone through.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
Console error
Benutzer:TanyaLlanas976#:1 Access to XMLHttpRequest at 'https://meta.wikimedia.org/w/api.php?action=query&format=json&origin=https%3A%2F%2Fde.wikibooks.org¢ralauthtoken={centralauthtoken}&prop=revisions&formatversion=2&rvprop=content&rvslots=main&rvlimit=1&titles=Steward%20requests%2FGlobal' from origin 'https://de.wikibooks.org' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
meta.wikimedia.org/w/api.php?action=query&format=json&origin=https%3A%2F%2Fde.wikibooks.org¢ralauthtoken={centralauthtoken}&prop=revisions&formatversion=2&rvprop=content&rvslots=main&rvlimit=1&titles=Steward%20requests%2FGlobal:1 Failed to load resource: net::ERR_FAILED