ASP.NET 8 + ANGULAR Template with Docker breaks the SPA proxy
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 290
Description
### 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_
Contributor guide
Assessment
This issue has not been assessed yet.