GTHell's avatar

How to remove API throttling?

I have pagination route in the API.php and you know, the user keep clicking next next and then get throttling errors. How can I avoid that. It's local service so I don't care much about DDOS.

0 likes
3 replies
s4muel's avatar
s4muel
Best Answer
Level 50

check your app/Http/Kernel.php, there you can either disable the throttling middleware at all or set a less restrictive rate_limit. have a look at this part in the file:

        'api' => [
            'throttle:60,1',
            'bindings',
        ],

the 60,1 means 60 requests per 1 minute

2 likes
GTHell's avatar

@s4muel Thank for the help but I have another question. When I said that it's only local service I do mean that only that one specific API because it's under Auth that only local user can do unlimited access. How do I only remove rate_limit from that specific route only?

s4muel's avatar

there are two options i can think of:

Please or to participate in this conversation.