call allowDomain early