I am facing this error when injecting the script ‘-confirm?.()-’
How can I solve this?.
Google “How to prevent xss script injection into browser url”
Goolging is very important skill which every developer needs to master
Welcome in the forum and can you please tell us why you are asking how to prevent cross-site scripting, and trying to use a cross-site script at the same time?
This is not a hacker forum and posts like this are moved to the bin quickly, but maybe I’m getting something wrong.
Hi, Its okay solved already ya, this is for my company website, the security team have encounter this vulnerability, and given to me to resolve the issue. Anyway thanks for replying .Have a good day
I know how to google ya, Since did not find the solution, I tried to post here. Anyway its solved.
Usually you’re going to start with a library that does a lot of this work for you. Trying to write all your own regular expressions for XSS is a path to madness (and bugs). Depending on what framework you’re using, you should be able to add security to the router to strip out offending text before navigating.