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.
默认情况下,ASP.NET 应用程序是否可以防止跨站点脚本?我读过 machine.config 文件有一个默认设置为 on 的属性,这可以防止跨站点脚本?这是真的?
<system.web> <pages buffer="true" validateRequest="true" /> </system.web>
您可以使用 antxss 库作为补充