Sometimes your Magento 2 storefront displays the message Invalid form key. please refresh the page. bzw. Invalid form key. Please refresh the page. . One potential solution is to change your app/etc/env.php to replace the following code:
|
1 |
'host' => 'localhost', |
to
|
1 |
'host' => '127.0.0.1', |
…