Answer the question
In order to leave comments, you need to log in
Infinite magic error in laravel, why?
In general, oddities. If you often navigate through pages or spam with ajax pagnation. Just stable once a second to change the page. I constantly catch 401 (Unauthorized). I decided maybe the matter is in my two middlewares (authorization check and check for the role, whether the role route is available), transferred them to redis. And it didn’t give anything special, maybe of course it lowered 401 (Unauthorized) a bit, or maybe just self-hypnosis. Actually what is it for? what's wrong? despite the fact that I don’t catch it on localhost. Only in the sandbox
Answer the question
In order to leave comments, you need to log in
https://github.com/laravel/framework/issues/8172 read, when I got an error with one-time messages in sessions, I delved into this topic for a day, then it turned out that the problem was in ajax debugbar requests, and not in Laravel , but the impression of seriousness remained. Also try to disable csrf tokens for requests and rewrite part of the logic to websockets (the one that can be rewritten). And most importantly - look at how the server is configured and what is the difference between localhost and a server, since you don’t have an error on the localhost, it means something.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question