Dela via


Microsoft.AspNetCore.Cors Namespace

Contains types that are used to enable cross-origin resource sharing (CORS).

Classes

CorsPolicyMetadata

Metadata that provides a CORS policy.

DisableCorsAttribute

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

EnableCorsAttribute

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

Remarks

For more information about CORS, see Enable CORS with attributes.