Last active
December 26, 2020 17:24
-
-
Save susimsek/9fec3dc95c86c73a51a7399c1d9968e6 to your computer and use it in GitHub Desktop.
Spring boot Hateoas Link Change Hostname Using X-Forwarded-* Header
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
public class ForwardedHeaderFilterConfig { | |
@Bean | |
public FilterRegistrationBean<ForwardedHeaderFilter> forwardedHeaderFilter() { | |
FilterRegistrationBean<ForwardedHeaderFilter> result = new FilterRegistrationBean<>(); | |
result.setFilter(new ForwardedHeaderFilter()); | |
result.setOrder(0); | |
return result; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment