This is an add-on package for enforcing the CSP Restrictive Mode in the checkout, including the Alpine CSP Build and removing the unsafe-inline
and unsafe-eval
policies. This is required to be fully compliant with PCI DSS v4.
Install this package via composer (assuming you have setup the composer.yireo.com
repository correctly already):
composer require loki-checkout/magento2-csp
Next, enable this module:
bin/magento module:enable LokiCheckout_Csp
Note that this module only covers CSP rules for the LokiCheckout extensions. Your theme still requires work as well to work together with the no-unsafe-inline
and no-unsafe-eval
policies.
For getting support, create an Issue under the following project URL:
https://gitlab.yireo.com/loki-checkout/LokiCheckout_Csp
The following dependencies are declared in the module its `etc/module.xml` file:
Magento_Store
LokiCheckout_Core
Yireo_CspUtilities
LokiCheckout_Csp
loki-checkout/magento2-csp
magento/framework: ^103.0
loki-checkout/magento2-core: ^2.0
yireo/magento2-csp-utilities: ^1.0
dev-main | 28 August 2025 |
2.0.5 | 28 August 2025 |
2.0.4 | 26 August 2025 |
2.0.3 | 21 August 2025 |
2.0.2 | 19 August 2025 |
2.0.1 | 07 August 2025 |
2.0.0 | 22 July 2025 |
defer
back to Alpine CSP loadigLokiCheckout_Core
to 2.0.0Yireo_Loki*
to Loki*
yireo/magento2-loki*
to loki/magento2*