[Bug]: absproxy strips /absproxy/<port> from request path #5439
Replies: 4 comments 11 replies
-
I believe this behavior is expected (cc @code-asher to confirm). I am guessing you need to configure a proxy similar to how people do it for React/Vue |
Beta Was this translation helpful? Give feedback.
-
I will appreciate it if you can help me to figure out how to set up correct proxy for angular app |
Beta Was this translation helpful? Give feedback.
-
Sadly I've never used Angular so I wouldn't be much help. I'd read the Angular guide and give that a try. Maybe something like: devServer: {
proxy: {
'/': 'http://localhost:8080/absproxy/4200',
},
}, |
Beta Was this translation helpful? Give feedback.
-
I tried to use this proxy configuration but its behavior is odd: {
"/": {
"target": "http://localhost:8080/absproxy/4200",
"logLevel": "debug"
}
} Logs:
Due to a lot of the redirections my request fails with error |
Beta Was this translation helpful? Give feedback.
-
Is there an existing issue for this?
OS/Web Information
code-server --version
: 4.5.1Steps to Reproduce
ng serve --disable-host-check
<code-server-path>/absproxy/4200
Expected
Application is correctly opened in browser
Actual
Application is not opened in browser properly because of
absproxy
still strips/absproxy/<port>
from request path (but docs says thatabsproxy
will keep/absproxy/<port>
)Logs
No response
Screenshot/Video
Does this issue happen in VS Code or GitHub Codespaces?
Are you accessing code-server over HTTPS?
Notes
No response
Beta Was this translation helpful? Give feedback.
All reactions