Front-end verification is mainly for good user experience and fast response, but it is unreliable and can be bypassed; but background verification is the real verification of data legitimacy, so any front-end verification cannot Replaces background verification.
Users can simulate browser operations and submit illegal data, which can be easily achieved with curl~
There is something called Firebug.
Must be verified before and after. For a user who understands the front-end, he can maliciously attack your website.
The backend still needs to be verified, and the front-end data is never trustworthy
What if I simulate a request?
So I have to add it!
It’s definitely necessary, so I’ll add one more point.
Some mobile versions of WeChat’s built-in browser cannot be used required
Of course you have to add
your review element and then remove required and try
Front-end verification is just for experience, the back-end is the real verification
Front-end verification is mainly for good user experience and fast response, but it is unreliable and can be bypassed; but background verification is the real verification of data legitimacy, so any front-end verification cannot Replaces background verification.