Hi, Good Morning,
Can you helps us? How can we set the server side asp.net core to be accessed by multiple client side angular 2 for developing.
Thanks
7 Answer(s)
-
0
Hi,
Normally adding second app's url here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/master/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Host/appsettings.json#L14">https://github.com/aspnetzero/aspnet-ze ... s.json#L14</a> should allow second app to access host project.
But host app is designed to contain only one ClientRootAddress and even if you access more than one app to host, some functions will work according to this value. For example password reset and email actiovation email will contain the value for ClientRootAddress.
Thanks.
-
0
Hi, Good Morning,
We were not able to access the url (<a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/master/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Host/appsettings.json#L14">https://github.com/aspnetzero/aspnet-ze ... s.json#L14</a>), can you send that appsettings.json file.
Thanks
-
0
Hi,
It seems like your user "thobiasxp" is allowed for private github repository. Please let us know if you are trying with another github user.
The related section is
"CorsOrigins": "http://localhost:4200,http://localhost:49152"
You can add client addresses seperated with comma to this value.
Thanks.
-
0
Hi,
Thanks for your help, it worked.
-
0
Hi,
<cite>ismcagdas: </cite> Hi,
Normally adding second app's url here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/master/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Host/appsettings.json#L14">https://github.com/aspnetzero/aspnet-ze ... s.json#L14</a> should allow second app to access host project.
But host app is designed to contain only one ClientRootAddress and even if you access more than one app to host, some functions will work according to this value. For example password reset and email actiovation email will contain the value for ClientRootAddress.
Thanks.
Is there a limit to the number of client applications we can create that way? Or can we create as many as we need?
The scenario I'm talking about is the following:
Main AngularUI project for administrative purpose (host and tenant/client) and the creation of content (tenant/client) Copy of AngularUI project for some public stuff (e.g. a website that is used to publish some tenant-created content to be viewed by public) without any authentication/authorization needs Copy of AngularUI project for some other public stuff (e.g. another website that is used for some special purpose, like digital/public signage using tenant-created content) also without any need for authentication/authorization
Is it okay with licensing?
Thanks
-
0
Hi @alexanderpilhar,
If they are the parts of same project, our licensing allows it, no problem.
-
0
Hi @ismcagdas,
great to hear that :D
Yes, they are all parts of the same project - I just want to split up the client-side by use-case to keep the project simple!
Thanks a lot!