I want to enforce https routing for the login page only of my application.
Is it possible to do so with Play! without the use of a front end http server?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use an
@Beforeinterceptor to redirect every request, even if the user types http:// directly. Below is the code that I use (it works when running containerlessplay run, or when running behind a front end such as on Heroku).