Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "maliming"

please refer: https://forum.aspnetboilerplate.com/viewtopic.php?f=5&t=11483 https://github.com/angular/angular-cli/issues/5775

If I understand you correctly.

In fact, ANZ provides the http interface of the web api. It can be called by any client (such as the existing angular client)

Calling a webapi that requires permission only needs to pass the correct credential (token).

https://aspnetboilerplate.com/Pages/Documents/Multi-Tenancy#determining-current-tenant

DomainTenantResolveContributer: Tries to resolve tenancy name from an url, generally from a domain or subdomain. You can configure the domain format in the PreInitialize method of your module (like Configuration.Modules.AbpWebCommon().MultiTenancy.DomainFormat = "{0}.mydomain.com";). If the domain format is "{0}.mydomain.com" and the current host of the request is acme.mydomain.com, then the tenancy name is resolved as "acme". The next step is to query ITenantStore to find the TenantId by the given tenancy name. If a tenant is found, then it's resolved as the current TenantId.

There is no problem with your angular project. The Host project does not correctly determining the current tenant. If you want to test, you can request it.http://beverley.nuagecare.io/api/services/app/Session/GetCurrentLoginInformations

The tenant information will be returned normally. But your host project is not working correctly.

Configuration.Modules.AbpWebCommon().MultiTenancy.DomainFormat = _appConfiguration["App:ServerRootAddress"] ?? "http://localhost:22742/";

Has your App:ServerRootAddress configured the DomainFormat correctly?

Their order is also important

app.UseCors(//...)
app.UseDevExpressControls();

I am having some problems trying to building your project. What is your local sdk version?

or Would it help if I tested the sub-domain successfully using the ASPNET ZERO Demo Project?

You're welcome, my friend

Ok, I will check it out.

Can you use the Demo project to reproduce the problem you are experiencing? Demo project:https://aspnetzero.com/Download

In js file. see abp.ng.js:

https://github.com/aspnetzero/aspnet-zero/blob/dev/src/MyCompanyName.AbpZeroTemplate.Web/Abp/Framework/scripts/libs/angularjs/abp.ng.js#L99

https://github.com/aspnetzero/aspnet-zero/blob/dev/src/MyCompanyName.AbpZeroTemplate.Web/Abp/Framework/scripts/libs/angularjs/abp.ng.js#L34

Should be showing the error message here, you can set breakpoint debugging to see,

https://github.com/aspnetzero/aspnet-zero/blob/dev/src/MyCompanyName.AbpZeroTemplate.Web/Abp/Framework/scripts/libs/angularjs/abp.ng.js#L34

Showing 2691 to 2700 of 2998 entries