XSS WebAPI solutions
重写DelegatingHandler的SendAsync方法进行过滤
public class AntiXssHttpMessageHandler : DelegatingHandler
{
protected override System.Threading.Tasks.Task SendAsync(HttpRequestMessage Request, System.Threading.CancellationToken cancellationToken)
{
foreach (var key i
转载
2021-01-20 10:16:45 ·
128 阅读 ·
0 评论