open class RelativeRedirectFilter : OncePerRequestFilter
Overrides HttpServletResponse#sendRedirect(String)
and handles it by setting the HTTP status and "Location" headers. This keeps the Servlet container from re-writing relative redirect URLs and instead follows the recommendation in RFC 7231 Section 7.1.2.
Note: While relative redirects are more efficient they may not work with reverse proxies under some configurations.
Author
Rob Winch
Author
Rossen Stoyanchev
Since
4.3.10
RelativeRedirectFilter()
Overrides Note: While relative redirects are more efficient they may not work with reverse proxies under some configurations. |
open fun getRedirectStatus(): HttpStatus
Return the configured redirect status. |
|
open fun setRedirectStatus(status: HttpStatus): Unit
Set the default HTTP Status to use for redirects. By default this is |