On preventing XSS attack of vue project

1. For the data requested from the interface, try to use {}} loading instead of V-HTML Curly braces in vue interpret the data as plain text. Usually, if you want to interpret it as HTML code, you need to use v-html. This instruction is equivalent to innerHTML. Like innerHTML, script tags will not be output directly, but img, iframe and other ta ...

Posted on Wed, 03 Nov 2021 04:39:04 -0400 by Collin