I am getting this error when I send requests over HTTP , it works correctly in HTTPS
this my form
<form id="login-form" action="{{ route('login') }}" method="POST">
@csrf
<div class="form-row-title">
<h3>شماره موبایل</h3>
</div>
<div class="form-row with-icon form-group">
<input type="text" name="username" class="input-ui pr-2" placeholder=" شماره موبایل خود را وارد نمایید">
<i class="mdi mdi-account-circle-outline"></i>
</div>
<div class="form-row mt-3">
<button type="submit" class="btn-primary-cm btn-with-icon mx-auto w-100">
<i class="mdi mdi-login-variant"></i>
ورود
</button>
</div>
</form>
when I dump csrf token in HTTPS request the CSRF token from the form field is the same as the csrf_token()
function but in HTTP request they are different.