veriteworks / cookiefix

veriteworks/cookiefix

Magento2 extension for Cookie SameSite attribute.

magento2-module Compatibility: 2.4.7-2.4.9 Code Quality: Fail Tests: N/A Security: Pass OSL-3.0, AFL-3.0

Extension for Cookie SameSite attribute

This extension is adjusting Cookie SameSite attribute issue since Chrome 80.

NOTICE: this extension is experimental.

Features

Add SameSite attribute into Magento session cookie. For 3DS payment, payment gateways tend to send request via POST to Magento based website. However without SameSite=None for session cookie, Magento cannot continue any PHP session state.
This extension set SameSite=None and make customers place order via 3DS payment or other ID integrations.

How to install

  • composer require veriteworks/cookiefix
  • bin/magento module:enable Veriteworks_CookieFix
  • bin/magento setup:upgrade

Configuration

After 3.0.0-beta1, you can change SameSite cookie configuration from admin panel. Go to "Stores > configuration > web" and open cookie section. You can see "SameSite" field.
By default, this extension sets SameSite configuration value to limited cookies. If you hope to update the list, please update web/cookie/affected_keys configuration value.

Support

If you have any issues about this extension, open an issue on Github.
Technical support question is same.

Contribution

Any contributions are highly appreciated. Please send me a pull request.

License

Open Software License 3.0

Copyright

(c) 2020 Veriteworks Inc.

No changelog yet

The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.

Versions
Version Stability QA Status Compatibility Released
3.2.2 stable Fail Magento 2.4.7-2.4.9 Details 2026-06-04 06:53:16
3.2.1 stable Not tested Not yet tested Details 2025-10-24 02:53:24
3.2.0 stable Not tested Not yet tested Details 2025-06-11 05:52:06
3.1.2 stable Not tested Not yet tested Details 2024-05-14 00:23:49
3.1.1 stable Not tested Not yet tested Details 2024-04-22 08:25:45
3.1.0 stable Not tested Not yet tested Details 2024-04-22 00:37:17
3.0.5 stable Not tested Not yet tested Details 2023-09-08 05:30:31
3.0.4 stable Not tested Not yet tested Details 2023-06-01 04:59:09
3.0.3 stable Not tested Not yet tested Details 2023-03-31 08:55:44
3.0.2 stable Not tested Not yet tested Details 2022-05-25 10:17:49
3.0.1 stable Not tested Not yet tested Details 2021-06-02 05:18:51
3.0.0 stable Not tested Not yet tested Details 2021-02-15 08:37:48
2.4.2 stable Not tested Not yet tested Details 2021-02-15 08:36:30
3.0.0-beta1 beta Not tested Not yet tested Details 2020-11-04 09:04:00
2.4.1 stable Not tested Not yet tested Details 2020-10-26 07:11:17
2.4.0 stable Not tested Not yet tested Details 2020-09-16 03:44:18
2.3.1 stable Not tested Not yet tested Details 2020-08-28 03:50:23
2.3.0 stable Not tested Not yet tested Details 2020-08-21 08:20:30
2.2.0 stable Not tested Not yet tested Details 2020-07-31 07:26:29
2.1.1 stable Not tested Not yet tested Details 2020-07-02 07:16:59
2.1.0 stable Not tested Not yet tested Details 2020-07-02 02:43:34
2.0.0 stable Not tested Not yet tested Details 2020-04-17 02:37:42
1.0.6 stable Not tested Not yet tested Details 2020-04-17 02:28:24
1.0.5 stable Not tested Not yet tested Details 2020-03-10 10:59:55
1.0.4 stable Not tested Not yet tested Details 2020-03-09 09:32:42
1.0.3 stable Not tested Not yet tested Details 2020-02-20 10:08:12
1.0.2 stable Not tested Not yet tested Details 2020-02-14 04:13:14
1.0.1 stable Not tested Not yet tested Details 2020-02-14 03:20:09
1.0.0 stable Not tested Not yet tested Details 2020-02-07 15:37:21

Requires 3

Package Constraint
lib-libxml *
magento/framework ~102.0.6-p1||~103.0.1
php ~8.1.0||~8.2.0||~8.3.0||~8.4.0||~8.5.0

Compatibility

Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.

Compatibility matrix (Magento × PHP)
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Pass Pass
2.4.8 Pass Pass
2.4.9 Pass Pass

Code Quality

Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge — a phpcs finding can't make a module incompatible.

Static analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

Static analysis results
Tool Status Findings Summary
PHPCS Pass 0
PHPMD Warning 2 2 rule violations (UnusedFormalParameter:1, TooManyPublicMethods:1)
Cpd Pass 0
Composer validate Info 1 valid; 1 advisory note (composer validate --strict)

PHPStan

Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases. Cell → details modal.

PHPStan results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 2 2
2.4.8 2 2
2.4.9 2 2

Tests

Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.

Unit tests

Unit tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Integration tests

Integration tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Security

Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.

Security results
Tool Status Findings Summary
Composer audit Pass 0
Malware scan Pass 0
License
OSL-3.0, AFL-3.0
Authors
Make it pay

Turn an existing module into recurring revenue.

If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.