Our application is behind reverse proxy like this
https://external.address/my-external-context/my-app
proxy forwards to
http://internal.address:8080/my-app
The application (my-app) loads properly with all the resources. But then things go wrong. Browser starts to call server side with incorrect address, seems like this in chrome developer tools. Request URL seems to be without host name (external.address) and external context-path (/my-external-context/).
Any idea what might be wrong in the setup? Reverse proxy (F5) forwards x-forwarded-for, x-forwarded-proto, host headers properly to Tomcat where our application is running. I’ve added RemoteIpValve to tomcat context.xml, it has no effect.
- Request URL:
https://my-app/vaadinServlet/UIDL/?v-uiId=0 - Referrer Policy:
no-referrer-when-downgrade - Request Headers
- Provisional headers are shown
- Access-Control-Request-Headers:
content-type - Access-Control-Request-Method:
POST - Origin:
https://external.address/ - Referer:
https://external.address/my-external-context/my-app - Sec-Fetch-Mode:
cors - User-Agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36 - Query String Parametersview sourceview URL encoded
- v-uiId:
0