I created a new storeview and noticed that I can't log in as a customer. It works on the main store view perfectly fine. There are no errors in the server and magento logfiles.

I always get: "Invalid Form Key. Please refresh the page. "

I disabled ALL third party modules and changed my theme to magento luma, but I still get the error.

Magento Version: 2.3.4-p2

1 Answer 1


I had to change the cookie domain of my new store view.

It was set to the same as the website "company.com" I changed it to "app.company.com"

Credits to blog.expertrec.com

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.