See the full course at https://reactsecurity.io
There are some situations where we need to set the InnerHTML of an element in our app. For example, we may need to render pre-formatted HTML content, possibly supplied by a user.
Setting an element's InnerHTML is a very common cross-site scripting attack vector. A user may supply some content that triggers a script to execute in our app, putting our users at risk.
Let's see how to sanitize content when setting the InnerHTML of an element in a React application.
Смотрите видео ReactSecurity - Sanitize Content When Setting InnerHTML онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Holodeck 21 Апрель 2020. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 13,569 раз и оно понравилось 356 посетителям.