public static IApplicationBuilder UseSecurityHeaders(this IApplicationBuilder builder, Action <SecurityHeaderOptions> headerOptions) { var options = new SecurityHeaderOptions(); headerOptions(options); return(builder.UseMiddleware <SecurityHeaders>(options)); }
public SecurityHeaders(RequestDelegate next, SecurityHeaderOptions options) { this._next = next; this._options = options; }