Jul 24, 2020
0
Level 1
Throttle Middleware fails on multiple ajax test
I am using laravel 5.6, the following resources are used
Route::any('throttle3', function(){ return response()->json(['status'=>'success','message'=>'asasas']); })->middleware('throttle:1,0.25');
I have added 4 ajax request in a js function when I call the function first 3 of the request get success and last one request get blocked by Throttle.
in my concept first request is to be succeeded and another 3 got blocked by Throttle.
Is there any idea to achieve this?
Please or to participate in this conversation.