W
W
WebDev2016-05-24 11:46:25
Laravel
WebDev, 2016-05-24 11:46:25

Token mismatch laravel?

The local computer is running openserver 5.2.3 and every time I get the error "Token mismatch exception", everything is fine with the tokens and there are no such errors in production. I created a route /token in which I give the current token. It matches both the cookie token and the form token, but once in a while (very often), the token is treated as invalid.
What can be wrong? Someone faced?
UPD: for some reason, different tokens are issued on the /token route.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Muhammad, 2016-05-24
@muhammad_97

I would look for the file in which the exception is thrown and before the condition where the tokens are compared, I would output them through var_dump. Based on this, you can already dig further.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question