0

working on a laravel project, Cookie and session stopped setting on client's browser in production but work on localhost. every form submission is not getting to controller and returned 419 page expired. it was woking perfectly before and suddenly it start showing 419 error. any help is highly appreciated.

.env

SESSION_DRIVER=database
SESSION_LIFETIME=120
SESSION_ENCRYPT=false
SESSION_PATH=/
SESSION_DOMAIN=.mydomain.com
SESSION_SECURE_COOKIE=true


The html form

 <form method="POST" action="/question"> 
   @csrf
    <input type="text" name="first_question">  
    <button type="submit"> SIGN IN </button>                          
  </form>
0

1 Answer 1

0

After 2 days of searching for the solution, i went back to check the last file i commited to github before the error started, i discovered it was white space before <?php.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.