Hi all i need to transform this configuration from application.groovy to application.yml
grails.plugin.springsecurity.controllerAnnotations.staticRules =
[ '/': ['permitAll'],
'/error': ['permitAll'],
'/index': ['permitAll'],
'/index.gsp': ['permitAll'],
'/shutdown': ['permitAll'],
'/assets/**': ['permitAll'],
'/**/js/**': ['permitAll'],
'/**/css/**': ['permitAll'],
'/**/images/**': ['permitAll'],
'/**/favicon.ico': ['permitAll'] ]
For example grails.plugin.springsecurity.apf.postOnly = false is represented as
grails:
plugin:
springsecurity:
apf:
postOnly: false
Try with this:
grails:
plugin:
springsecurity:
controllerAnnotations:
staticRules:
'/': permitAll
'/error': permitAll
'/index': permitAll
'/index.gsp': permitAll
'/shutdown': permitAll
'/assets/**': permitAll
'/**/js/**': permitAll
'/**/css/**': permitAll
'/**/images/**': permitAll
'/**/favicon.ico': permitAll
It works for me. YAML specification taken from official YAML spec website
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With