Closed monghuz closed 10 years ago
I have changed logout link type from post to get and the error gone away in my project : ) Maybe it will help you ..
Thank you cansorezi! It seems with get method it's working, but I don't see the benefit of the get method over the post.
The root of this issue was a change in the core of yii2 https://github.com/yiisoft/yii2/blob/master/framework/UPGRADE.md Please update your main layout file by adding this line in the section: <?= Html::csrfMetaTags() ?>. This change is needed because yii\web\View no longer automatically generates CSRF meta tags due to issue #3358
Yes, I have found it today and want to write here but you did it first : ))
Since 2 days ago , when I refreshed my yii2 project via composer I can't logout with yii2-auth.
All other function seams good, but when I try to logout I get the followin error: yii\web\HttpException:400
Here is the error stack from yii debugger:
I tried to find the root of this error without success. :(