Manual talk:CORS
Any reason for this page not to be merged with API:Cross-site requests? --Nemo 11:34, 10 February 2014 (UTC)
- I don't get the snippet to work, that might be a reason, or it might be a support question which I shouldn't post here --Keeleleek (talk) 09:33, 1 September 2014 (UTC)
Rest API
editI added a section about the availability of mediawiki.ForeignRest
(https://doc.wikimedia.org/mediawiki-core/master/js/mw.ForeignRest.html) for using a remote wiki's REST API, along with an example for Wikimedia Commons. That one works for me when I tested it, but I currently lack information on how to make it work for self-hosted wikis without running into Cross-Origin Request blocked ... CORS header ‘Access-Control-Allow-Origin’ missing
.
Apparently, setting $wgCrossSiteAJAXdomains on the remote wiki is not enough. mediawiki.ForeignApi
does work fine for me, by the way, but it's just mediawiki.ForeignRest
that seems to require something else whatever it is. Cavila