Skip to main content
Microsoft.AspNetCore.Cors package icon

Microsoft.AspNetCore.Cors

CORS middleware and policy for ASP.NET Core to enable cross-origin resource sharing. Commonly used types: Microsoft.AspNetCore.Cors.DisableCorsAttribute Microsoft.AspNetCore.Cors.EnableCorsAttribute

Total Downloads
323.4M
323,427,567
Published
Jan 6, 2026
Latest stable version

Install

.NET CLI
dotnet add package Microsoft.AspNetCore.Cors --version 2.3.8
Package Manager Console
Install-Package Microsoft.AspNetCore.Cors -Version 2.3.8
PackageReference
<PackageReference Include="Microsoft.AspNetCore.Cors" Version="2.3.8" />

Frameworks

.NETStandard2.0

Dependencies

Adoption guide

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.

Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.