JavaScript Client-Side form validation DOESN'T WORK - Here's Why

preview_player
Показать описание
What you think of as form validation doesn't really work. Frontend form validation in JavaScript is useful for user experience. For true protection though, form validation has to happen on the server! This means you might be rewriting code to handle User Experience on the frontend and true validation on the backend.

In this video, we'll discuss form validation and how you might be vulnerable. We'll then see how KwesForms can help make this process much easier by handling frontend and backend form validation as well as form submissions in just a couple of minutes.

*Sponsored by KwesForms

Use coupon code JAMES50 for 50% off an annual plan.

**DISCORD**

**STAY IN TOUCH 👋**

**QUESTIONS ABOUT MY SETUP**
Рекомендации по теме
Комментарии
Автор

I hope noone thinks validation on client-side only is "secure", so good that you address this topic. What drives me crazy, however, is that 1Password popup. 😒

krccmsitp
Автор

You can also check response.ok which returns a Boolean if response 200-299.
This might be better then checking response.status != 200

200-299 errors are successful i.e. created or successful get.

lukecartwright
Автор

KING! Keep going James. Ma fav. Thank you!

sebastiandahlstrom