Description
Hi,
Last weekend (feb 20), Spring 4.1.5 was release. After fetching this new version I've got an issue with the links generated by Spring-hateoas.
Example link before the update:
https://example.com/rest/mobile/users/1
Example link after the update:
https://example.com:80/rest/mobile/users/1
As you can see, it automatically append port 80 to the URL. The problem is that my rest back-end is running on a cloud platform heroku, which is using a reverse proxy to terminate the TLS (HTTPS).
browser --- (HTTPS/TLS on :443) --- reverse proxy --- (HTTP on :80) --- Heroku web server
This worked well before the update since the port was not automatically appended and the browser could figure out the port by negotiation. By hard coding it (by taking it form the original request), this auto detecting is not possible anymore.
Does someone has an idea on how to get around this problem? Is there a way to configure the URL building strategy (port appending on default 80/443 ports in particular) globally in spring-hateoas?
Best regards,
Bart
PS: when I deploy my REST back-end locally I use localhost:9090, which worked and still works well. So in some cases I need the TCP port to be appended, but in case of 80/443 http/https I'd like the port to be left out of the URL.