When running the app behind a reverse proxy (apache+mod_proxy+mod_proxy_html) I noticed that the reported host name is garbled, with extra tags around the actual host name.
This is because the content-type for the data returned by the backend for the host name isn't forced to JSON (even though the web app code does seem to expect JSON, even if just a plain string), and the middleware decides to "fix" the content.
The proposed fix is to return actual JSON with the proper content-type.
When running the app behind a reverse proxy (apache+mod_proxy+mod_proxy_html) I noticed that the reported host name is garbled, with extra tags around the actual host name.
This is because the content-type for the data returned by the backend for the host name isn't forced to JSON (even though the web app code does seem to expect JSON, even if just a plain string), and the middleware decides to "fix" the content.
The proposed fix is to return actual JSON with the proper content-type.