Enforcing HTTPS on api calls.