ng serve not working behind reverse proxy basehref/servepath #27576
Labels
area: devkit/build-angular
devkit/build-angular:dev-server
freq1: low
Only reported by a handful of users who observe it rarely
needs: investigation
Requires some digging to determine if action is needed
severity3: broken
type: bug/fix
Command
serve
Is this a regression?
The previous version in which this bug was not present was
before vite
Description
I provide remote training for Angular using VSCode in the browser.
It is no longer possible to use the vscode port forwarding to access the ng dev server as basehref and servepath combinations to not yield the correct result when @angular node resources are to be loaded. It works for all other assets/files in the project.
Minimal Reproduction
Use code-server oder vscode server access through web browser.
ng new
ng serve --host 0.0.0.0 --disable-host-check
Open the forwarded port, URL becomes f.e.
https://student01.remote-training.de/proxy/4200/
Exception or Error
No response
Your Environment
Anything else relevant?
I tried various configuration combinations using prebundle, basehref and servepath only to experience worse problems like beeing redirected to https://student01.remote-training.de/proxy/4200/proxy/4200/
The text was updated successfully, but these errors were encountered: