NWebsec.Owin by André N. Klingsheim

<PackageReference Include="NWebsec.Owin" Version="4.0.0" />

 AppBuilderExtensions

public static class AppBuilderExtensions
public static IAppBuilder UseCsp(this IAppBuilder app, Action<IFluentCspOptions> configurer)

Adds a middleware to the OWIN pipeline that sets the Content-Security-Policy header.

public static IAppBuilder UseCspReportOnly(this IAppBuilder app, Action<IFluentCspOptions> configurer)

Adds a middleware to the OWIN pipeline that sets the Content-Security-Policy-Report-Only header.

public static IAppBuilder UseHpkp(this IAppBuilder app, Action<IFluentHpkpOptions> configurer)

public static IAppBuilder UseHpkpReportOnly(this IAppBuilder app, Action<IFluentHpkpOptions> configurer)

public static IAppBuilder UseHsts(this IAppBuilder app, Action<IFluentHstsOptions> configurer)

Adds a middleware to the OWIN pipeline that sets the Strict-Transport-Security header.

Adds a middleware to the OWIN pipeline that validates redirects.

Adds a middleware to the OWIN pipeline that validates redirects.

Adds a middleware to the OWIN pipeline that sets the Referrer-Policy header.

Adds a middleware to the OWIN pipeline that sets the X-Content-Type-Options header.

Adds a middleware to the OWIN pipeline that sets the X-Download-Options header.

public static IAppBuilder UseXfo(this IAppBuilder app, Action<IFluentXFrameOptions> configurer)

Adds a middleware to the OWIN pipeline that sets the X-Frame-Options header.

Adds a middleware to the OWIN pipeline that sets the X-Robots-Tag header.

Adds a middleware to the OWIN pipeline that sets the X-Xss-Protection header.