T
T
The Dragger2016-06-16 12:53:23
Laravel
The Dragger, 2016-06-16 12:53:23

csrf_token not working?

html:

<form method="POST" action="/auth/login">
                            <input name="_token" type="hidden" value="{!! csrf_token() !!}" />
.....

Error on the site: TokenMismatchException in VerifyCsrfToken.php line 53:
The funny thing is that everything works on Ubuntu on OSX, but I need to run the server on windows. I installed OpenServer and set up hosts, and after that I can’t log in now.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolai Shvetsov, 2016-06-17
@ShNn

There was the same error, send the token in the header, only the syntax is different there, but you can google it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question