This patch addresses two critical issues in Magento's Content Security Policy (CSP) module:
-
Race Condition: Fixes corrupted
sri-hashes.jsonfiles caused by concurrent write operations during normal storefront operation, which results in malformed JSON and 500 checkout errors. -
Minification Support: Ensures that static.min.js and mixins.min.js are correctly loaded and their SRI hashes properly recorded when CSP and SRI are enabled along with JS bundling and minification enabled simultaneously.