Yesterday I saw this article on the site of Taiwan, Basically saying that the option "SameSite by default cookies" has been removed by Chrome 91.
If this is a confirmed news, How can we make OpenCart 2.3 support Chrome 91 and solve the SameSite problem? I mean the third-party payment gateway module still has the same problem, I need someone to tell us how to solve it?
Does anyone know the latest solutions in OpenCart 2.3 and OpenCart 3.0?
Please help me, Thank you!
If this is a confirmed news, How can we make OpenCart 2.3 support Chrome 91 and solve the SameSite problem? I mean the third-party payment gateway module still has the same problem, I need someone to tell us how to solve it?
Does anyone know the latest solutions in OpenCart 2.3 and OpenCart 3.0?
Please help me, Thank you!
The article is about the hidden chrome://flags SameSite settings being removed. Only a tiny percentage of customers will of ever changed theses setting, so I don't see how anything has really changed. See: https://www.chromium.org/updates/same-site
No changes needed. If it worked in Chrome 90 (without changes to any hidden settings) it will work in Chrome 91.
I must say that our previous modification method is no longer valid, Because every day, many customers report to us that they cannot normally use the payment gateway module to complete the payment, Can you find out the latest solution for us now?
Thank you!
Thank you!
Check the cookie flags in your web browser's developer tool. Is same SiteSite set to "None" and Secure set?
After this, my original payment module worked fine, But a few days ago we installed a new payment module and there was a problem.ADD Creative wrote: ↑Mon Aug 30, 2021 5:32 pmCheck the cookie flags in your web browser's developer tool. Is same SiteSite set to "None" and Secure set?
That module seems to use technology from SameSite - Lax, So my original payment module works fine, but when I use the new module it doesn't work properly.
So my original payment module works fine, but when I use the new module it doesn't work properly.
I have verified the source code of OpenCart 4.0.2.3, I found that Daniel ended up using SameSite - Lax as a solution:
Code: Select all
// Set a new currency cookie if the code does not match the current one
if (!isset($this->request->cookie['currency']) || $this->request->cookie['currency'] != $code) {
$option = [
'expires' => time() + 60 * 60 * 24 * 30,
'path' => '/',
'SameSite' => 'Lax'
];
setcookie('currency', $code, $option);
}
Add to .htaccess
Code: Select all
Header always edit Set-Cookie (.*) "$1; SameSite=Lax"
Web Development | Content Creation | Analytics and Reporting | SEO
https://www.klwebdesign.com.my/
If a payment method works with with Lax it will also work with None, so there would be no need to change.
This is the payment module I originally used, I have confirmed that I am in the original OpenCart environment and if I have not modified the SiteSite-None solution, I am not functioning properly.
https://github.com/ECPay/OpenCart2.3.0.2
https://github.com/ECPay/OpenCart3.X
When I use the solution you modified for me, The problem of not being able to be used properly has been solved, But when I install a new module in the same environment, it cannot be used normally.
https://github.com/payuni/OpenCart3.X
I now want to confirm how to solve the compatibility problem between the two?
ECPay SiteSite = None
payuni SiteSite = Lax
OpenCart 4.0.2.3 has officially used SiteSite = Lax
Does this mean that my problem can be solved as long as ECPay can operate normally in the environment of SiteSite = Lax?
If so, how should I change this code?
viewtopic.php?f=202&t=219633#p797082
Can you help me?
https://github.com/ECPay/OpenCart2.3.0.2
https://github.com/ECPay/OpenCart3.X
When I use the solution you modified for me, The problem of not being able to be used properly has been solved, But when I install a new module in the same environment, it cannot be used normally.
https://github.com/payuni/OpenCart3.X
I now want to confirm how to solve the compatibility problem between the two?
ECPay SiteSite = None
payuni SiteSite = Lax
OpenCart 4.0.2.3 has officially used SiteSite = Lax
Does this mean that my problem can be solved as long as ECPay can operate normally in the environment of SiteSite = Lax?
If so, how should I change this code?
viewtopic.php?f=202&t=219633#p797082
Can you help me?
Are you using the right extension for Opencart 2?
https://github.com/payuni/OpenCart3.X
This is for Opencart 3.
https://github.com/payuni/OpenCart3.X
This is for Opencart 3.
Web Development | Content Creation | Analytics and Reporting | SEO
https://www.klwebdesign.com.my/
If you are using SameSite=None, then payment extensions that require either None or Lax will work. If you are using SameSite=Lax, then only payment extensions that require Lax will work.HAO wrote: ↑Mon Sep 25, 2023 3:49 pmThis is the payment module I originally used, I have confirmed that I am in the original OpenCart environment and if I have not modified the SiteSite-None solution, I am not functioning properly.
https://github.com/ECPay/OpenCart2.3.0.2
https://github.com/ECPay/OpenCart3.X
When I use the solution you modified for me, The problem of not being able to be used properly has been solved, But when I install a new module in the same environment, it cannot be used normally.
https://github.com/payuni/OpenCart3.X
I now want to confirm how to solve the compatibility problem between the two?
ECPay SiteSite = None
payuni SiteSite = Lax
OpenCart 4.0.2.3 has officially used SiteSite = Lax
Does this mean that my problem can be solved as long as ECPay can operate normally in the environment of SiteSite = Lax?
If so, how should I change this code?
viewtopic.php?f=202&t=219633#p797082
Can you help me?
What I mean is, can ECPay be changed to SiteSite = Lax?
By modify the code of this post, Would it be possible to solve my problem if I changed None to Lax in this code?
Original
Change to
This is what I want to confirm, Because I heard that future iPhones and browsers will directly cancel SameSite None.
If so, I want to update the practice like this, Can you help me?
Thank you!
By modify the code of this post, Would it be possible to solve my problem if I changed None to Lax in this code?
Original
Code: Select all
'samesite' => 'None',
Code: Select all
'samesite' => 'Lax',
If so, I want to update the practice like this, Can you help me?
Thank you!
Yes, if you want to change SameSite to Lax then in the changes replace None with Lax.HAO wrote: ↑Mon Sep 25, 2023 10:01 pmWhat I mean is, can ECPay be changed to SiteSite = Lax?
By modify the code of this post, Would it be possible to solve my problem if I changed None to Lax in this code?
OriginalChange toCode: Select all
'samesite' => 'None',
This is what I want to confirm, Because I heard that future iPhones and browsers will directly cancel SameSite None.Code: Select all
'samesite' => 'Lax',
If so, I want to update the practice like this, Can you help me?
Thank you!
Because I can only use Google Translate to understand what you mean, What you mean is that no matter which version of OpenCart I use, I only need to modify the keywords and other code does not need to be modified, right?
Original
Change to
I only need to make this modification and no other changes are needed, right?
Original
Code: Select all
'samesite' => 'None',
Code: Select all
'samesite' => 'Lax',
Yes.HAO wrote: ↑Tue Sep 26, 2023 8:12 amBecause I can only use Google Translate to understand what you mean, What you mean is that no matter which version of OpenCart I use, I only need to modify the keywords and other code does not need to be modified, right?
OriginalChange toCode: Select all
'samesite' => 'None',
I only need to make this modification and no other changes are needed, right?Code: Select all
'samesite' => 'Lax',
Who is online
Users browsing this forum: No registered users and 7 guests