Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to force https

I have a grails project. Right now, the user can access it either with HTTP or HTTPS. I would like to require that they can only access it through HTTPS. any ideas? I do have spring security core installed, if that can be of help

thanks jason

like image 405
jason Avatar asked Sep 23 '11 21:09

jason


1 Answers

Spring's core supports that:

grails.plugins.springsecurity.secureChannel.definition = [
  '/path/**':         'REQUIRES_SECURE_CHANNEL'
]
like image 178
Chris Cashwell Avatar answered Sep 22 '22 12:09

Chris Cashwell