You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm sending a post request to an existing route and redirecting back with a session message.
The csrf token regenerates every time i repeat the request or every few seconds, Making the one present in the form invalid.
Update:
A fresh laravel installation has the same problem with login form.
The text was updated successfully, but these errors were encountered:
edalati
changed the title
CSRF-TOKEN regenerates when redirecting back to a form
CSRF-TOKEN Regenerates when redirecting back to a form
Jan 15, 2018
edalati
changed the title
CSRF-TOKEN Regenerates when redirecting back to a form
CSRF Token Regenerates on each request or every few seconds
Jan 16, 2018
edalati
changed the title
CSRF Token Regenerates on each request or every few seconds
CSRF token regenerates every few seconds
Jan 16, 2018
I had the same problem when developing in windows using the built-in serve artisan command. It was due to some security directives from my employer's company AD.
I couldn't fix it. Installing the fork for laravel valet for windows worked for me then.
I updated my PHP version to 7.1.13 and it fixed the problem.
I'll close this in a couple of days if nobody is interested but the Windows specific bug is still in there!
At least i hope it's a windows specific bug.
Description:
I'm sending a post request to an existing route and redirecting back with a session message.
The csrf token regenerates every time i repeat the request or every few seconds, Making the one present in the form invalid.
Update:
A fresh laravel installation has the same problem with login form.
Controller Method:
Form:
The text was updated successfully, but these errors were encountered: