DEV Community

Discussion on: How safe is same-origin client-server communication?

Collapse
 
bravemaster619 profile image
bravemaster619

Any good coder should never trust client input.

If you're developing an admin dashboard, querying in client-side would be OK. I like the idea.

But other than that... I cannot dare to imagine it

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

I have tried to give client a power to query with a string parser as well, but I guess it is best to give least power to client. Still, perhaps allow full-text-search.

Otherwise, I am thinking about stateless, unbreakable server. But databases are usually not stateless.