ASP.NET 8 + ANGULAR Template with Docker breaks the SPA proxy
Is there an existing issue for this?
- [X] I have searched the existing issues
Describe the bug
When an angular + asp.net 8 project is created with docker selected at the creation screen, all services are able to build and run however the spa proxy does not work because docker randomly reassigns the ports https port defined in the launchSettings.json. Is there a way around this?
Expected Behavior
SPA proxy should start and requests to the server applications should be forwarded to the client application (if they cannot be handled by the server).
Steps To Reproduce
Create a new project using the ASP.NET + Angular template. Enable docker support of the bat and select linux environment. Start the application, the weather forecast does not show in the angular app and there is an exception in the angular console making it clear the spa proxy has failed to start successfully because docker reassigns the ports
Exceptions (if any)
No response
.NET Version
8.0.204
Anything else?
No response