DefaultCorsPolicies 1.0.0

Suggested Alternatives

Nlabs.DefaultCorsPolicy 1.0.0

Additional Details

Updated Package

dotnet tool install --global DefaultCorsPolicies --version 1.0.0                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local DefaultCorsPolicies --version 1.0.0                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=DefaultCorsPolicies&version=1.0.0                
nuke :add-package DefaultCorsPolicies --version 1.0.0                

DefaultCorsPolicies NuGet Package

NuGet Version

DefaultCorsPolicies, ASP.NET Core uygulamalar�nda varsay�lan CORS politikalar�n� eklemek i�in kullan�lan bir NuGet paketidir.

Kurulum

NuGet Package Manager Console veya .NET CLI kullanarak paketi projenize ekleyin:

dotnet add package DefaultCorsPolicies

Yada

Install-Package DefaultCorsPolicies

Kullan�m�

using Microsoft.Extensions.DependencyInjection;

namespace YourNamespace
{
    public class Startup
    {
        public void ConfigureServices(IServiceCollection services)
        {
            // Di�er servis konfig�rasyonlar�...

            // DefaultCorsPolicies eklendi
            services.AddDefaultCors();
        }

        // Di�er Startup metodlar�...
    }
}

�rnek

using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;

namespace YourNamespace.Controllers
{
    [ApiController]
    [Route("[controller]")]
    public class SampleController : ControllerBase
    {
        private readonly ILogger<SampleController> _logger;

        public SampleController(ILogger<SampleController> logger)
        {
            _logger = logger;
        }

        [HttpGet]
        public IActionResult Get()
        {
            return Ok("DefaultCorsPolicies NuGet paketi kullan�m �rne�i");
        }
    }
}

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
1.0.0 365 11/15/2023 1.0.0 is deprecated.