CorsAuthorizationFilter CorsAuthorizationFilter CorsAuthorizationFilter Class

Definition

A filter that applies the given CorsPolicy and adds appropriate response headers.

public class CorsAuthorizationFilter : Microsoft.AspNetCore.Mvc.Cors.Internal.ICorsAuthorizationFilter, Microsoft.AspNetCore.Mvc.Filters.IAsyncAuthorizationFilter, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter
type CorsAuthorizationFilter = class
    interface ICorsAuthorizationFilter
    interface IAsyncAuthorizationFilter
    interface IFilterMetadata
    interface IOrderedFilter
Public Class CorsAuthorizationFilter
Implements IAsyncAuthorizationFilter, ICorsAuthorizationFilter, IOrderedFilter
Inheritance
CorsAuthorizationFilterCorsAuthorizationFilterCorsAuthorizationFilter
Implements

Constructors

CorsAuthorizationFilter(ICorsService, ICorsPolicyProvider) CorsAuthorizationFilter(ICorsService, ICorsPolicyProvider) CorsAuthorizationFilter(ICorsService, ICorsPolicyProvider)

Creates a new instance of CorsAuthorizationFilter.

CorsAuthorizationFilter(ICorsService, ICorsPolicyProvider, ILoggerFactory) CorsAuthorizationFilter(ICorsService, ICorsPolicyProvider, ILoggerFactory) CorsAuthorizationFilter(ICorsService, ICorsPolicyProvider, ILoggerFactory)

Creates a new instance of CorsAuthorizationFilter.

Properties

Order Order Order
PolicyName PolicyName PolicyName

The policy name used to fetch a CorsPolicy.

Methods

OnAuthorizationAsync(AuthorizationFilterContext) OnAuthorizationAsync(AuthorizationFilterContext) OnAuthorizationAsync(AuthorizationFilterContext)

Applies to