I have a site that is accessible from a subdomain and www. and when accessing from the subdomain the media module's file browser for file uploads/library opens using the wrong domain and so it fails due to security risks for cross domain iframe access. All I get is a white empty box in the modal. On the main site with www. it works fine.

I'm sure this is a fairly common problem, but I'm unable to find anything.

Anyone able to offer some help?

  • I would try setting the $base_url in the settings file or force the subdomain to use www in your htaccess. That way you are consistent in the way the page is served Oct 30, 2014 at 21:02

1 Answer 1


This ended up being caused by a custom module we had on the site that performed url inbound and outbound alters to direct certain node types, paths etc. to certain domains. All we needed to do was add an exception to the handling for media paths.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.