Laravel 5 and Internet Explorer : Token Mismatch

后端 未结 4 1200
小鲜肉
小鲜肉 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:28

    I had the same problem and what fixed it for me was to edit my .htaccess expire settings to:

    
        ExpiresActive On
        ExpiresDefault A0
        ExpiresByType text/html A0
        # Set up caching on media files for 1 year
        
            ExpiresDefault A31536000
        
    
    

    Before, my ExpiresDefault was A31536000 and I did not have the ExpiresByType text/html.

提交回复
热议问题