Unable to verify your data submission.

Sometime when click logout, i get this response.

Bad Request (#400)

Unable to verify your data submission.

I need to click logout again to logout succesfully.

How to fix this?

logout link code :


['label' => Yii::t('app', 'Sign out'),

          'url' => ['/user/security/logout'],

          'linkOptions' => ['data-method' => 'post']]