Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What difference does it make, with respect to security, whether the server returns html or json that needs to be formatted into html?

The computation for rendering (in every case I've seen, and I have to speculate in 80% of cases ever) is so trivial compared to the actual retrieval of the data to be rendered.



None really, I was not eloquent about it - just that returning well structured data makes easier to extract data. You could also argue that if you render locally, you might return data used only for rendering that's not output and that also leaves your server's boundary where it wouldn't be necessary to leave at all with SSR. But like you said, these are things that are not really security.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: