Monday, July 14, 2014

Java sendRedirect https becomes http

This can happen when your Servlet contain is behind a load-balancer and when your load-balancer is handling SSL, and when you are redirecting using a relative URL.

In such a situation, you can't use relative URL. You will instead have to specify the absolute URL to redirect to i.e. the URL starting from "https://".

No comments:

Post a Comment