knorv
knorv

Reputation: 50117

Config.groovy in Grails: grails.views.default.codec - why base64?

The Config.groovy setting grails.views.default.codec specifies the default codec used to encode data with ${...}.

This config setting can take any of the values none, html and base64.

I understand the reason to why one would set them to none (no filtering required) or html (to avoid XSS-attacks), but why would anyone like to set it to base64-encoding?

Please provide a specific use-case when it would be appropriate to set it to base64.

Upvotes: 1

Views: 488

Answers (1)

Siegfried Puchbauer
Siegfried Puchbauer

Reputation: 6539

There is most probably no real use case for this. It should just illustrate that you can use any codec (bundled or your own) as the default codec for views.

Upvotes: 1

Related Questions