Fix ssl_allowed NameError in Api BaseController