How to make Spring Security application to run behind a proxy?

前端 未结 3 846
独厮守ぢ
独厮守ぢ 2021-01-04 20:28

We have an application build on Java 1.6 with Spring 3.0.3 that use Spring Security 3.0.5 and implements REST API using Spring Web with RestEasy 2.1.0. I need to place this

3条回答
  •  星月不相逢
    2021-01-04 20:51

    Not entirely relative, but probably you might want to have a look into a 4th option using the org.springframework.web.servlet.view.UrlBasedViewResolver to rewrite the redirected URL with your external hostname as described in this answer: Override the default redirect URL in a SpringMVC application.

提交回复
热议问题