AspNetCoreRateLimit icon indicating copy to clipboard operation
AspNetCoreRateLimit copied to clipboard

Post or put rule not working

Open draxtor opened this issue 2 years ago • 0 comments

Hello, I've tried this on 4 & 5 versions of the AspNetCoreRateLimit.

Setup:

  • AspNet core web app (.Net 7).
  • Configuration is in appsettings.json
  • I have custom client resolver.

This is not working:

{
        "Endpoint": "((post)|(put)):*",
        "Period": "1m",
        "Limit": 10
}

And this is working:

{
        "Endpoint": "post:*",
        "Period": "1m",
        "Limit": 10
 }

I've also tried, but no luck:

{
        "Endpoint": "((post)|(put)): */api/*",
        "Period": "1m",
        "Limit": 10
}
{
        "Endpoint": "((post)|(put)):.+",
        "Period": "1m",
        "Limit": 10
}

According to docs it should work: image

draxtor avatar Oct 17 '23 08:10 draxtor