Unable to load static files CSS and JS using path based routing


Using path based routing between my containers using the same:

Rancher (1.X) and HAProxy (1.6.3)

Service rules:

Request Host | PORT | PATH | Target | Port
sec.app.company.com 8080 /frontend-app frontend-container 3000
sec.app.company.com 8080 /user-api user-api-container 4000

Now I make call to host/user-api/get-users — > this working fine, I’m getting the response from user-api-container with “/get-users” endpoint.

Whereas If I make call to host/frontend-app which was angular app ,rendering of all the static assets (CSS and JS ) with absolute path were failing and getting 503 response.

Any suggestion please , If I missed something ??