I have a view in my Laravel application that has a form with the @csrf inside. The problem is that I faced the 419 Page expired exception only sometimes.
When I refreshed the page, the login page appeared and after login, a few times the form submission was done successfully but again, 419 occurred.
I saw the other topics. All of them told that the solution is adding the @CSRF directive to the form.
But in my special case, the @CSRF exists.
Help me please.
Update
Here is a part of my source code. It's a simple html form with the @CSRF inside it.<form method="POST" action="/settingUrl">
@csrf
<input type="text" name="myfield" />
<input type="submit" value="save" />
</form>