Angular application - Live reload doesn't work behind YARP proxy #1954
-
Hello, I created a YARP based reverse proxy to route multiple angular applications and .NET 6 web APIs. I encountered an issue during this process. If I don't use proxy, any edits I make to angular apps are automatically refreshed in browser (Live reload). If I use proxy, then websocket call fails(which is used by live-reload). I asked for help from angular team angular/angular-cli#24373 and they concluded that with nodejs-based proxy, websocket calls succeed so it could be an issue with YARP configuration. I created a simple git repo to showcase the issue - https://github.com/prabh-62/angular-15-proxy-websocket-url-bug Do you know if I my YARP configuration is incorrect? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Looking at the picture, the ws socket is to ws://localhost/ng-cli-ws, but I don't see that in the route in the proxy configuration. The app doesn't appear to be using a relative path. |
Beta Was this translation helpful? Give feedback.
Looking at the picture, the ws socket is to ws://localhost/ng-cli-ws, but I don't see that in the route in the proxy configuration. The app doesn't appear to be using a relative path.