Support HTTPS web sites

When I have a Joomla web site which I access trough https, then the apps Base Urls needs to point to the https cdn.