Wiki URL | https://lakehub.miraheze.org/ |
Context: I'm trying to build an oscilloscope with MP3/OGG files using the Web Audio API.
Problem: CORS policy blocks the media from being played, so the MP3/OGG fails to load. I thought this was initially because the Access-Control-Allow-Origin was set only to the wikis themselves, but even if I upload an audio on my own wiki, CORS policy still blocks it.
I'm testing it on https://rotompedia.miraheze.org/wiki/User:Lakelimbo/test for now.
The apparent solution is to manually set $wgCrossSiteAJAXdomains (https://www.mediawiki.org/wiki/Manual:$wgCrossSiteAJAXdomains):
- All of Miraheze (and maybe some Wikimedia subdomains?):
$wgCrossSiteAJAXdomains = [ '*.miraheze.org' ];
- or allow my Wiki specifically:
$wgCrossSiteAJAXdomains = [ 'lakehub.miraheze.org' ];
If possible, could this be changed? Thanks :)