dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.46k stars 10.03k forks source link

About RateLimiting middleware get RateLimiterOptions #56573

Open ayrloong opened 4 months ago

ayrloong commented 4 months ago

Is there an existing issue for this?

Is your feature request related to a problem? Please describe the problem.

No response

Describe the solution you'd like

I use RateLimiting middleware in aspnetcore, but I encounter a problem that I cannot get its RateLimiterOptions value in real time because it is fixed when injected. WechatIMG324

Additional context

No response

ayrloong commented 4 months ago

There is an ICorsPolicyProvider interface in CorsMiddleware that can be well implemented WechatIMG325