Veriteworks / CookieFix

Fix Magento2.2/2.3/2.4 Cookie SameSite attribute
Academic Free License v3.0
65 stars 35 forks source link

Add to cart stops working when enabling your plugin - Magento 2.2.7 #13

Open ktsour opened 4 years ago

ktsour commented 4 years ago

Hi, once we install the plugin, it fixes the problem with the payment gateway but when we try to add anything to the cart, it does not add it.

HirokazuNishi commented 4 years ago

Which version are you using? We applied 2.2x compatible version for our client websites, and no such report. Please share me more details and how to reproduce your case.

ktsour commented 4 years ago

Hi, we used 2.3.0 in magento 2.2.7

HirokazuNishi commented 4 years ago

Hm... Did you check add to cart request/response data? Also did you check Magento & web server logs?

fysiosupplies commented 4 years ago

We are experiencing the same thing.

Using magento 2.3.5-p2 with version 2.3.0 of cookie fix.

We have found that in chrome it does not have the PHPSESSID cookie.

-edit- This is only on chrome. other browsers work fine

HirokazuNishi commented 4 years ago

@fysiosupplies does your Magento run only https? "SameSite=None" is only allowed with "Secure" attribute by browsers.

fysiosupplies commented 4 years ago

Yes. Our systems are all running on https.

fysiosupplies commented 4 years ago

We have found our problem. While our secure url's started with https:// and the browser used https://Our base url's still had http://.

In order for magento to use secure cookies all four urls need to be https:// in store -> configuration -> general -> web