I installed MediaViewer (and CommonsMetadata) in the wiki at http://www.auslandssemester-bali.de, and it works fine for the most part, but when I omit the 'www', I get the following error:
Error: Could not load thumbnail data. could not load image from http://www.auslandssemester-bali.de/images/thumb/a/a3/Apartment-Nala-Seminyak-Bali-14.jpg/320px-Apartment-Nala-Seminyak-Bali-14.jpg
Also the console throws this error:
XMLHttpRequest cannot load http://www.auslandssemester-bali.de/images/thumb/a/a3/Apartment-Nala-Seminyak-Bali-14.jpg/320px-Apartment-Nala-Seminyak-Bali-14.jpg. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://auslandssemester-bali.de' is therefore not allowed access.
My images/.htaccess file has the required line:
Header add Access-Control-Allow-Origin "*"
I tried setting and modifying the relevant headers at runtime in all the entry points, but no luck. I also tried adding the following to LocalSettings.php:
$wgCrossSiteAJAXdomains = array( 'auslandssemester-bali.de' );
Yet nothing. Maybe it's something in my server setup, but it may also be a MediaViewer bug. Anyone knows what may be wrong or how to fix it? Thanks!