Seeing as the iframe loads config already, we should be able to base this on ROOTURL.