Magento 2 “Invalid Form Key. Please refresh the page”

To fix this issue you need to increase the value of max_input_vars in php.ini file. By default, this value is set to 1000. You should set it to 5000 or 10000.

# php -r “phpinfo();” | grep max_input_vars
max_input_vars => 1000 => 1000

Incrase the value to 5000 in php.ini file

Leave a Reply

Your email address will not be published. Required fields are marked *