Sanitizing URLs and form data to prevent XSS attacks #7935
Unanswered
MyNameIsOka
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everybody,
I am looking to improve the security for a project I am working on and want to sanitize/validate the URLs and formData to prevent XSS attacks.
I don't have a lot experience in this so I would like to ask you guys about best practices or if that is even necessary or what tools you recommend.
Basically, there are two scenarios as far as I understand.
Scenario 1: sanitizing URL
Scenario 2: sanitizing/validating formData
I am using https://github.com/braintree/sanitize-url and https://github.com/validatorjs/validator.js but are there any other tools you would recommend?
Any tips and insights are very welcome!
Thanks a lot,
Oka
Beta Was this translation helpful? Give feedback.
All reactions