How to force https

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

thanks jason

+6
source share
1 answer

Spring Kernel supports:

grails.plugins.springsecurity.secureChannel.definition = [ '/path/**': 'REQUIRES_SECURE_CHANNEL' ] 
+7
source

Source: https://habr.com/ru/post/897936/


All Articles