Hi,
I’m requesting a json file from a (public) route via js from the frontend.
The json includes some email adresses, that shall be available to the site visitors.
Now regarding spam protection (since the json url is available in the source code) I was wondering, if it would make sense to first Str::encode
the email adresses
before sending the json respone, and then decode them again in the js app, - just as I would do it in my HTML-Templates with the Html::email
helper.
Or is this an unnessesary extra step and would help nothing?
Also the json response would grow pretty fast…