I can be able to login to my store admin easily and everything is working fine. After when I logged in I got an error "Invalid security or form key. Please refresh the page.
" at the dashboard.
It is just for the first time issue. When I refresh the page everything works fine. Whenever I login to my store admin I got this issue. The occurrence of the issue is when I upgrade my magento from 2.4.2 to 2.4.3.
Please help me out with it. Thanks!
3 Answers
I'm having the exact same issue after upgrading from 2.3.6 to 2.4.3 on initial login to admin area. Clears when I refresh the page.
You need to make changes described here to ger rid of this message: https://github.com/magento/magento2/issues/33749#issuecomment-908145941
The file in mention is found here:
\vendor\magento\module-backend\App\Action\Plugin\Authentication.php