See this article:
Make sure to configure your app with basePath or whatever. It needs to generate URLs in your HTML with the path you’re trying to proxy to.