Skip to content

Magento 2 Invalid Form Key when Saving Products in Admin

When running a Magento 2 storefront, it can be quiet frustrating to spend 10 minutes updating a product description, only to be met with an error when you try to save.

Magento 2 invalid form key when saving products

Thankfully, this is rarely a major issue. Most likely, it is a local browser caching issue. Here are 4 ways to check if it is a simple problem:

  1. Use Ctrl + F5 to hard refresh the page (PC).
    • For MAC on OS X try:
    • Hold down Shift and click the Reload button.
    • Or Hold down Command, Shift and click the ‘R’ key.
  2. Log out and back in (do a hard refresh again while you are logged out)
  3. Use a different browser in Private mode and test the process to save a product.
  4. Use one of these methods to clear your browsers cache for a single site (no one wants to clear their whole cache, especially with all the TFA cookies you have to recreate).
    • Chrome: Right click and inspect somewhere on the page (or F12) on the keyboard
      • Click Application > Clear storage > Clear site data
Chrome clear site data for one site and save your cache for others
Firefox clear data and cache for single site

If you want to know for Safari or Edge – just contact me and I’ll update this post.

If the above doesn’t solve your issue, get one of our developers to work on the issue.