As mentioned in another forum post, the issue has been solved by finely tuning the reverse proxy in front of the Axelor instance (to make it short, I added http-request add-header X-Forwarded-Port %[dst_port]
in the backend section of my HAProxy reverse proxy configuration for the Axelor instance).