Loading assets cross-domain with SSL or non-SSL option
You could try something like '@assetBaseUrl' =&gt; $_SERVER['HTTPS'] ? 'https://site1.domain.org/files' : 'http://site1.domain.org/files' which checks for a secure request.