I have an angular universal app (version 11) and I need to be able to call the application (get rendered in server side) through .NET Core HttpClient Request. I need to send some Http Headers (i.e. UserId, Security Token, etc.) plus some URL parameters (i.e. ProductId) to my angular universal app and am expecting the app (through server side) gets rendered properly, however only some static HTML tags gets returned after the call with no styling and no actual app to get running.
Please consider that if I open the server side URL in a browser, I am able to run the application only if I comment out the logic to consider the Http Headers.
Am I missing something or Angular Universal was not designed to be called through a Http Request (i.e. sending request using postman)?
Here is a sample project that I created in Github, to reproduce the bug there. https://github.com/Parham1381/repro-app
When I call the app through a browser, I can see it working properly, but when I open it using .NET Http Client, here is the result:
You can see a sample code in .NET core to call the angular universal application.