Search by

yireo / magento2-page-cache-csp-nonce-regenerator

Magento module to regenerate CSP nonces when built-in Page Cache is enabled

Maintainers

Package info

github.com/yireo/Yireo_PageCacheCspNonceRegenerator

Type:magento2-module

pkg:composer/yireo/magento2-page-cache-csp-nonce-regenerator

Transparency log

Fund package maintenance!

yireo

www.paypal.me/yireo

Statistics

Installs: 1 310

Dependents: 0

Suggesters: 0

Stars: 10

0.0.2 2024-09-04 10:37 UTC

This package is auto-updated.

Last update: 2026-09-03 08:44:19 UTC


README

Magento version PHP version License Latest Version

Magento 2 module that replaces the CSP nonces added to various script tags with a fresh instance, while the built-in Magento Page Cache is enabled. In other words, even with the Page Cache enabled, nonces are generated per request

Requirements

  • Magento_PageCache module enabled
  • Magento_Csp module enabled
  • Magento Page Cache configured to use the Built-In cache

^^Note that this module does not provide a solution for Varnish.

Installation

composer require yireo/magento2-page-cache-csp-nonce-regenerator
bin/magento module:enable Yireo_PageCacheCspNonceRegenerator

Current status

Static Tests Unit Tests Integration Tests Playwright DI Compilation