Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove IServiceProvider from CorsPolicyService #1239

Merged
merged 1 commit into from
Jun 1, 2023

Conversation

josephdecock
Copy link
Member

@josephdecock josephdecock commented Apr 7, 2023

The CorsPolicyService originally took a dependency on the IServiceProvider because the CorsMiddleware didn't resolve dependencies dynamically. As of .NET 3.0, that is now fixed, so we can remove this dependency.

See dotnet/aspnetcore#2377 for more detail.

Marking this for 7.0 to avoid a breaking change in 6.3.

We originally took a dependency on the IServiceProvider because the
CorsMiddleware didn't resolve dependencies dynamically. As of .NET 3.0,
that is now fixed, so we can remove this dependency.

See dotnet/aspnetcore#2377 for more detail.
@josephdecock josephdecock added this to the 7.x milestone Apr 7, 2023
@josephdecock josephdecock marked this pull request as ready for review May 31, 2023 14:20
@josephdecock josephdecock linked an issue May 31, 2023 that may be closed by this pull request
@brockallen brockallen merged commit 1556ba8 into main Jun 1, 2023
@brockallen brockallen deleted the joe/cors-policy-provider-di-cleanup branch June 1, 2023 17:11
@josephdecock josephdecock mentioned this pull request Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve dependency injection in the CorsPolicyService
2 participants