Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
每次我将数据返回给用户时,我都会看到 .NET 自动对数据进行编码,以防止恶意脚本。
那么为什么要验证请求呢?
根据 asp.net:http://www.asp.net/whitepapers/request-validation此方法用于防止某些脚本注入攻击.. 网络充满了攻击者,因此即使 .NET 也应该对数据进行编码自动做