Fix mixed content warning for logged in users