I have read a lot about it, but couldnt really decide which way is the best. I have a web app and a java rest application which serves to customers. What is the best way to prevent xss attacks using parameters in rest api and frontend?
- Validating each parameter in both server and client side
- Filter and control request params
- On client side control before putting every data in between tags etc... Thank you for your time.