cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid Form Key shows only on Safari frontend on every page

Invalid Form Key shows only on Safari frontend on every page

Hi, 

I am facing an issue: Invalid form key. Please refresh the page.  is showing on every page in frontend: it is only occuring on safari browser. Every other browser works fine with no problem at all.

 

Magento version is Magento ver. 2.4.2. 

 

Does anyone know a solution or what is causing this problem?

 

Thanks in advance.

 
 

 

 

4 REPLIES 4

Re: Invalid Form Key shows only on Safari frontend on every page

@infowijnbu8b53 

If the issue only arrives in the safari browser then check after clearing all the cache of the browser.

Do not forget to clear the Magento cache.

Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.

Re: Invalid Form Key shows only on Safari frontend on every page

Please ask hosting provider to increase php_value max_input_vars 75000.
1. Remove app/code/local/Mage/Core/Model/Session.php is exist.
2. Try to clear the cache from var/cache directory.
3. Then clear browser cache. Especially clear or delete cookies.
Hope this helps you!

If issue solved, Click Kudos & Accept as Solution.
LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool

Re: Invalid Form Key shows only on Safari frontend on every page

We have done that, but this didn't help fixing the problem. It is occuring on every Apple device, only in Safari browser. We have turned off every external plugin seperately with no result so plugins are not causing it either. Any clue what could cause it?

Re: Invalid Form Key shows only on Safari frontend on every page

Did you find any solution for this ? we are facing same issue where this error only displays on safari browser only, other browsers work fine. we already tried increasing the max_input_vars to 10000 but it didn't fix.