Socket
Book a DemoInstallSign in
Socket

defaultcorspolicy

Package Overview
Dependencies
Maintainers
0
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

defaultcorspolicy

8.0.0
unpublished
nugetNuGet
Maintainers
0
Source

DefaultCorsPolicy NuGet Package

Overview

The DefaultCorsPolicy NuGet package provides a simple and efficient way to enable Cross-Origin Resource Sharing (CORS) in your .NET applications. This package is designed to allow all incoming requests from different origins, making it ideal for development environments or applications where origin restrictions are not a concern.

Features

  • Allows any header.
  • Permits any method (GET, POST, PUT, DELETE, etc.).
  • Supports credentials in cross-origin requests.
  • Sets the policy to allow requests from any origin.

Installation

To install the DefaultCorsPolicy package, you can use the NuGet Package Manager console in Visual Studio:

Install-Package DefaultCorsPolicy

Or use the .NET CLI:

dotnet add package DefaultCorsPolicy

Usage

To use the DefaultCorsPolicy in your .NET application:

builder.Services.AddDefaultCors();
...
...
app.UseCors();

Keywords

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.