Reputation: 33
I Want to convert the existing (ASP .net core 16 application with Angular 14) project to an ASP .net core application with Angular Universal 14
I know how ASP .net core application work with Angular 14 when we create a .net core project using an angular template, But I want to know the steps of how angular universal work with a .net core project
I am working on a .net core project using an angular template
This is the Project.csproj
this is Program.cs
CORS Policy Error when login from SSR Application
I have added <BuildServerSideRenderer>true</BuildServerSideRenderer> but not working and also added UseSpa and UseAngularCliServer middleware to the program.cs but I think something I have missed.
Some points about the problem which I have faced
How to write code in a program.cs how to set middleware in the app.spa, spa.UseAngularCliServer
How to run angular universal through the .net core project
How APIs will work, how to integrate angular universal with .net core API, currently I am facing CORS policy Errors
I want to run my existing angular universal project with the .net core web API
Thanks in advance, your support will Appreciate
Upvotes: 1
Views: 188