@adobe/helix-html-pipeline 6.20.0 → 6.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/steps/csp.js +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [6.20.1](https://github.com/adobe/helix-html-pipeline/compare/v6.20.0...v6.20.1) (2025-02-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Use Web Crypto compatible function for nonce generation ([#817](https://github.com/adobe/helix-html-pipeline/issues/817)) ([cf654f8](https://github.com/adobe/helix-html-pipeline/commit/cf654f81733c8e1c6fd2493f124e32966de65b62))
|
|
7
|
+
|
|
1
8
|
# [6.20.0](https://github.com/adobe/helix-html-pipeline/compare/v6.19.1...v6.20.0) (2025-02-12)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/steps/csp.js
CHANGED
|
@@ -59,7 +59,9 @@ function shouldApplyNonce(metaCSPText, headersCSPText) {
|
|
|
59
59
|
* @returns {string}
|
|
60
60
|
*/
|
|
61
61
|
function createNonce() {
|
|
62
|
-
|
|
62
|
+
const array = new Uint8Array(18);
|
|
63
|
+
cryptoImpl.getRandomValues(array);
|
|
64
|
+
return btoa(String.fromCharCode(...array));
|
|
63
65
|
}
|
|
64
66
|
|
|
65
67
|
/**
|