Microsoft.AspNetCore.Cors.Infrastructure Namespace

Contains types that are used to create, configure, and handle CORS services.

Classes

CorsConstants

CORS-related constants.

CorsMiddleware

A middleware for handling CORS.

CorsOptions

Provides programmatic configuration for Cors.

CorsPolicy

Defines the policy for Cross-Origin requests based on the CORS specifications.

CorsPolicyBuilder

Exposes methods to build a policy.

CorsResult

Results returned by ICorsService.

CorsService

Default implementation of ICorsService.

DefaultCorsPolicyProvider

A type which can provide a CorsPolicy for a particular HttpContext.

Interfaces

ICorsMetadata

A marker interface which can be used to identify CORS metadata.

ICorsPolicyMetadata

An interface which can be used to identify a type which provides metadata needed for enabling CORS support.

ICorsPolicyProvider

A type which can provide a CorsPolicy for a particular HttpContext.

ICorsService

A type which can evaluate a policy for a particular HttpContext.

IDisableCorsAttribute

An interface which can be used to identify a type which provides metdata to disable cors for a resource.

IEnableCorsAttribute

An interface which can be used to identify a type which provides metadata needed for enabling CORS support.

Remarks

For more information about Cross-Origin Requests, see Enable Cross-Origin Requests (CORS) in ASP.NET Core.