Manual:CORS

MediaWiki supports cross-origin resource sharing if $wgCrossSiteAJAXdomains is enabled. The main API documentation can be found at API.

Some example code might look like: