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 This package was built from the source at: https://github.com/aspnet/CORS/tree/6eb5ead0126e4640e551b7cd060967888a13daf1

Total Downloads
323.3M
323,281,430
Published
Sep 12, 2018
Latest stable version

Install

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

Frameworks

.NETStandard2.0

Dependencies

[2.2.0-preview2-35157, )
[2.2.0-preview2-35157, )
[2.2.0-preview2-35157, )
[2.2.0-preview2-35157, )
[2.2.0-preview2-35157, )

Adoption guide

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

This version is marked prerelease. Validate its API and upgrade path before production use.

NuGet marks this package as deprecated. Review the publisher's migration guidance before adopting it.

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.