Base solution for your next web application
Open Closed

Subdomain for multi tenancy always goes to the admin tenant #4648


User avatar
0
Homam created

I have a problem with sub domain configuration for multi-tenancy.

Everything seems working except that when I use the tenant name, it always goes to the admin tenant regardless of the tenant name mentioned inthe sub domain.

I used the configuration exactly in the angular app & the apis app.

What can I be missed?


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @Homam,

    can you share your config files both for angular and host projects ?

  • User Avatar
    0
    Homam created

    Host Project "App": { "ServerRootAddress": "https://workiom-web-dev.azurewebsites.net", "ClientRootAddress": "https://{TENANCY_NAME}.workiom.com", "CorsOrigins": "http://localhost:4200,http://localhost:49152" },

    Angular { "remoteServiceBaseUrl": "https://workiom-dev.azurewebsites.net", "appBaseUrl": "https://{TENANCY_NAME}.workiom.com" }

    Note, I applied it only on the web project. The APIs are on a differet machine.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @Homam,

    Your host project uses

    "ServerRootAddress": "https://workiom-web-dev.azurewebsites.net"
    

    but angular project uses

    "remoteServiceBaseUrl": "https://workiom-dev.azurewebsites.net"
    

    could it be the problem ?