public static IApplicationBuilder AddXSS(this IApplicationBuilder app, Action <XSSOptions> fun)
        {
            var options = new XSSOptions();

            fun(options);
            return(app.UseMiddleware <XSSMiddleware>(options));
        }
Exemple #2
0
 public XSSMiddleware(RequestDelegate next, XSSOptions options)
 {
     _next    = next;
     _options = options;
 }