'Laravel 8 401 Unauthorized

I'm using Laravel 8 and sometimes when I access a page (the page doesn't matter) I get the 401 Unauthorized error. But if I reload the error disappears.

If anyone knows or has any idea why this error appears from time to time on any page, That would help me a lot

Thanks


The route:

 Route::get('/{client}/user/{id}', 'UserController@getUser')->name('get_user');


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source