Perhaps making dev and staging more like production will fix the HTTPS problem.