Skip to content

M2.4.7 Csp – what trigger generation of new hash values for csp_whitelist.xml

We have upgraded to M2.4.7 and have had some issues on the checkout page caused by csp blocking scripts loading from Cloudflare.

Failed to find a valid digest in the ‘integrity’ attribute for resource ‘https://www.xxx.dk/static/version1714545269/frontend/Magento/luma/da_DK/requirejs/require.js’ with computed SHA-256 integrity ‘VODlv7gms2iTofiNaOF9GqKvi4P0WL3J8UuH2UaX7rE=’. The resource has been blocked.

  1. The solution was to disable Cloudflare proxy and everything is working again, but how can use Cloudflare proxy?

  2. What trigger generation of new hash values in Magento for inserting in csp_whitelist.xml . After with commando do i have to update the hash values in csp_whitelist.xml