dotnet / dotnet/aspnetcore

Cross middleware did not perform service registration verification

Open
#64,443 1 comment 0 reactions 0 assignees View on GitHub
area-middleware feature-cors
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

``` c#
var builder = WebApplication.CreateBuilder(args);

var app = builder.Build();
app.UseCors();

app.Run();
```

error
``` bash
Multiple constructors accepting all given argument types have been found in type 'Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware'. There should only be one applicable constructor.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.