Open karthikchintala1 opened 1 year ago
It might not help you, but I recently tested UseClientRateLimiting in net 6.0 and it was working just fine, I've been having problemas only with UseIpRateLimiting. The only difference was that I set "EnableEndpointRateLimiting": true
I'm trying to setup rate limiting for my app but unfortunately it's not working as expected. In the below example, I've setup a limit to 1 under 1 min. But, I'm able to make multiple requests to the API's wthin the timeframe.
Here is my startup.cs file
and here is my appsettings.json file
I've looked on stack overflow and googled a bit but couldn't find anything helpful.
Frameworks and libraries: .NET 6 API, AspNetCoreRateLimit 5.0.0