How To Prevent The Most Common Cross Site Scripting Attack
דרג סרטון זה
התחבר כדי לדרג
תיאור
Cross site scripting is one of the most common ways that a hacker will attempt to infiltrate a website. There are many different forms of cross site scripting, but the most common cause of cross site scripting is using the JavaScript method innerHTML with user input. Any form of user input must be escaped before being used with innerHTML, and any use of innerHTML should be thoroughly thought out to ensure no user input can make it through without being sanitized. It is such an easy mistake to make, but luckily the fix is also just as easy. Cross Site Scripting Article: https://blog.webdevsimplified.com/2020-09/javascript-xss CodePen For This Video: https://codepen.io/WebDevSimplified/pen/xyRGxw Twitter: https://twitter.com/DevSimplified GitHub: https://github.com/WebDevSimplified CodePen: https://codepen.io/WebDevSimplified #XSS #WebDevelopment #Programming