stops https redirect when running in dev mode