This Magento 2 module 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.
Note that we develop our core with this module enabled at all times, which ensures that the Loki Checkout is CSP compliant at all times.
Install this package via composer:
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:
LokiCheckout_Core
Loki_Base
Loki_Components
Loki_CssUtils
Loki_FieldComponents
Loki_MapComponents
Magento_Backend
Magento_Catalog
Magento_Checkout
Magento_CheckoutAgreements
Magento_Config
Magento_Csp
Magento_Customer
Magento_Directory
Magento_Eav
Magento_Newsletter
Magento_Payment
Magento_Quote
Magento_Sales
Magento_Shipping
Magento_Store
Magento_Vault
Yireo_CspUtilities
Yireo_HyvaThemeAutoRegistration
LokiCheckout_Csp
loki-checkout/magento2-csp
magento/framework: ^103.0
loki-checkout/magento2-core: ^2.0
yireo/magento2-csp-utilities: ^1.0
dev-main#43db5e7cb59c221ba78efac301629647b14b381f | 20 October 2025 |
2.0.6 | 20 October 2025 |
2.0.5 | 20 October 2025 |
2.0.4 | 20 October 2025 |
2.0.3 | 20 October 2025 |
2.0.2 | 20 October 2025 |
2.0.1 | 20 October 2025 |
2.0.0 | 20 October 2025 |
1.0.5 | 20 October 2025 |
1.0.4 | 20 October 2025 |
1.0.3 | 20 October 2025 |
1.0.2 | 20 October 2025 |
1.0.1 | 20 October 2025 |
1.0.0 | 20 October 2025 |
defer
back to Alpine CSP loadigLokiCheckout_Core
to 2.0.0Yireo_Loki*
to Loki*
yireo/magento2-loki*
to loki/magento2*