Base solution for your next web application
Open Closed

The subdomain is not resolved as tenant #7511


User avatar
0
direccionti created

I am trying in the app resolve the tenant by subdomain.

In the Web.Host:

"App": { "ServerRootAddress": "https://mybackend.net/", "ClientRootAddress": "https://{TENANCY_NAME}.mydomain.com/", "CorsOrigins": "https://*.mydomain.com, ..... }

In the Angular App: "remoteServiceBaseUrl": "https://mybackend.net/", "appBaseUrl": "https://{TENANCY_NAME}.mydomain.com/", "localeMappings": { "angular": [ {

When I call the application with https://tenant.mydomain.com the tenant name is not resolved and the host login page is loaded. Only tenant names are resolved by cookies.

I tried to make a custom resolver, but it doesn't work either

Question, the backend need a subdomain too?

Thanks!


1 Answer(s)
  • User Avatar
    0
    direccionti created

    Hi! Solved! the backend should have the subdomain specified too.

    Thanks.