Laravel 5 and Internet Explorer : Token Mismatch

后端 未结 4 1224
小鲜肉
小鲜肉 2021-01-11 22:45

My Laravel5 website uses csrf tokens to prevent CSRF attacks. On Chrome and Firefox, eveything works fine.

I submitted the site for my client to test and, when he us

4条回答
  •  遥遥无期
    2021-01-11 23:11

    I am not sure about your case. But I just encountered same issue today. Only IE got problem. FF and chrome works fine.

    I then realize that it's the time/date at the server is wrong. Set the server to current date, then everything is working now.

    I guess it's because the server will set cookie expiration according to its own time, and at the client, IE will delete the cookies immediately if the server lags behind. Just my guess.

    Hope it can solve your case too. Good luck.

提交回复
热议问题