Please enable / Bitte aktiviere JavaScript!
Veuillez activer / Por favor activa el Javascript![ ? ]
If we need to do data validation on the server before sending to the dB or is it possible to trust js? - bug-code.com Q&A

If we need to do data validation on the server before sending to the dB or is it possible to trust js?

0 like 0 dislike
17 views
for example check the length of the value.

Is it possible to trick js and bypass the validation on the front to send data to the server?

You need to use redundant validation? on the front and on the backend?
asked by | 17 views

2 Answers

0 like 0 dislike
Need to check on the client and on the server. On the client for user convenience and server - to protect.
answered by
0 like 0 dislike
On the server - check always!
On the client - as you wish, but better to check
answered by
Welcome to Bug-code Q&A, where you can ask questions and receive answers from other members of the community.

24.8k questions

46.2k answers

0 comments

13.3k users

24,788 questions
46,220 answers
0 comments
13,321 users