I noticed that when the impersonation of a tenant user is done, there is a cookie placed in the root website which contains the imporonated Tenant Id. If I remove this cookie before returning to the host portal it's working ok ?
Ok, never mind. It seems I was supposed to run gulp --prod before copying the files to IIS.