Show / Hide Table of Contents

Class ContentSecurityPolicyReportingMiddleware

Middleware which provides support for Content-Security-Policy and Content-Security-Policy-Report-Only violation reports.

Inheritance
System.Object
ContentSecurityPolicyReportingMiddleware
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lib.AspNetCore.Security
Assembly: Lib.AspNetCore.Security.dll
Syntax
public class ContentSecurityPolicyReportingMiddleware

Constructors

ContentSecurityPolicyReportingMiddleware(RequestDelegate)

Instantiates a new ContentSecurityPolicyReportingMiddleware.

Declaration
public ContentSecurityPolicyReportingMiddleware(RequestDelegate next)
Parameters
Type Name Description
RequestDelegate next

The next middleware in the pipeline.

Methods

Invoke(HttpContext)

Process an individual request.

Declaration
public async Task Invoke(HttpContext context)
Parameters
Type Name Description
HttpContext context

The context.

Returns
Type Description
System.Threading.Tasks.Task

The task object representing the asynchronous operation.

Back to top Copyright © 2016 - 2023 Tomasz Pęczek