Dracip
4 years ago
244
10
Laravel

Many time 401 "Unauthorized." on ajax requests

Posted 4 years ago by Dracip

Hi,

one of my application page is loading some content via ajax in my page (currently 2 requests, after document ready). Many times I receive for this ajax requests the status "401" with response "Unauthorized.". Sometimes on refresh the page (with F5) is it working, Some times ony one request is receiving 401 status. And less times i receive 500 (laravel is in this case using wrong database credentials, not from .env).

Can anyone help me with this issues?

Using Laravel 5.1.6

Thanks

Please sign in or create an account to participate in this conversation.