public static IApplicationBuilder AddXSS(this IApplicationBuilder app, Action <XSSOptions> fun) { var options = new XSSOptions(); fun(options); return(app.UseMiddleware <XSSMiddleware>(options)); }
public XSSMiddleware(RequestDelegate next, XSSOptions options) { _next = next; _options = options; }