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

Post or put rule not working #468

Open
draxtor opened this issue Oct 17, 2023 · 0 comments
Open

Post or put rule not working #468

draxtor opened this issue Oct 17, 2023 · 0 comments

Comments

@draxtor
Copy link

draxtor commented Oct 17, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant