set default for allowed_hosts attribute to nil