Let browser take care of https or http enviroment