debugging constant redirection to https in prod