Open Closed

Set tenant from URL is not working as expected #9752

ips-ad created


  • What is your product version? -> 8.1
  • What is your product type (Angular or MVC)? -> Angular
  • What is product framework type (.net framework or .net core)? -> .net core


I have one more issue regarding the hosting setup (hopefully more or less the last one ;-) ) and hope you can help me with this one, too. As per documentation ( I understand that we can have customers set their tenant via the URL for convenience, which is great.

Before the actual question please correct me if this is not correct:

  • tenant users can access their tenant login through,
  • host users can access their tenant login through

I am running separate host and angular pages behind separate NGINX containers (reverse proxy and SSL offloading) and tried the following configuration: Host (appsettings.Production.json)

    "ServerRootAddress": "https://{TENANCY_NAME}",
    "ClientRootAddress": "https://{TENANCY_NAME}",
    "CorsOrigins": ",https://*,https://{TENANCY_NAME}",

Angular (appconfig.production.json)

  "remoteServiceBaseUrl": "https://{TENANCY_NAME}",
  "appBaseUrl": "https://{TENANCY_NAME}",

This is removing the tenant selection on the login page for host ( and logging in fine for host, but giving CORS error for I also had a different setting where login via worked, but ended up in host, too. Is there anything wrong with the configs above, anything to consider due to the NGINX reverse proxies? Before trying to set up the TENANCY_NAME feature I had everything up running smoothly (angular on http(s):// and host on with those proxies and didn't touch their configs since.

Thanks in advance for your support!

1 Answer(s)