Enable $wgCrossSiteAJAXdomains for wikimedia sites. It would be useful to be able to access the api across wikimedia domains through js gadgets.
Setting it to something like
$wgCrossSiteAJAXdomains = array( '/http:\/\/[a-z\-]{2,}\.wikipedia\.org/', '/http:\/\/[a-z\-]{2,}\.wikinews\.org/', '/http:\/\/[a-z\-]{2,}\.wiktionary\.org/', '/http:\/\/[a-z\-]{2,}\.wikibooks\.org/', '/http:\/\/[a-z\-]{2,}\.wikiversity\.org/', '/http:\/\/[a-z\-]{2,}\.wikipedia\.org/', '/http:\/\/[a-z\-]{2,}\.wikisource\.org/', '/http:\/\/[a-z\-]{2,}\.wikiquote\.org/', '/http:\/\/(?!upload)[a-z\-]{2,}\.wikimedia\.org/' );
Note: you might want to check the last one. I assume allowing cross site access to upload.wikimedia.org = Bad Thing. I don't know if allowing access to anything.wikimedia.org but upload.wikimedia.org is ok.
Cheers,
Bawolff
Version: unspecified
Severity: enhancement