I am developing a project in laravel8 (which is still new) and I want to hide some custom response headers(starting with x-) like:
X-RateLimit-Limit: 15
X-RateLimit-Remaining: 14
I want to customize this behavior and hide these headers, how can I easily find code (in a framework), which set's these headers
My code:
protected function configureRateLimiting()
{
RateLimiter::for('api', function (Request $request) {
return Limit::perMinute(15);
});
}
