You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
In order to prevent DDOS/other attack vectors, it would be good to set a rate limit on the endpoint or module level
Describe the solution you'd like
What would be nice is if I could do something like the following:
For modules:
@LitModule({rateLimit: {windowMs: 15*60*1000,// 15 minutesmax: 100// limit each IP to 100 requests per windowMs},exports: [
...
],imports: [
...
]})exportclassAppModule{}
For components, maybe something like:
@LitComponent({rateLimit: {windowMs: 15*60*1000,// 15 minutesmax: 100// limit each IP to 100 requests per windowMs}})exportclassAppComponent{
@GetMapping({produces: AppConstants.MESSAGE_V1,rateLimit: {windowMs: 15*60*1000,// 15 minutesmax: 100// limit each IP to 100 requests per windowMs}})home(res: HttpResponse){res.success({message: AppConstants.WELCOME_MESSAGE});}}
Describe alternatives you've considered
Alternative would be to add a middleware to the application or endpoint handling the rate limiting
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
In order to prevent DDOS/other attack vectors, it would be good to set a rate limit on the endpoint or module level
Describe the solution you'd like
What would be nice is if I could do something like the following:
For modules:
For components, maybe something like:
Describe alternatives you've considered
Alternative would be to add a middleware to the application or endpoint handling the rate limiting
The text was updated successfully, but these errors were encountered: