From 50de2dd42dc47f373c72eab51fbc912d5273b1f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Zaera=20Avell=C3=B3n?= Date: Fri, 18 Aug 2023 14:31:26 +0200 Subject: [PATCH] fix(amd-loader): return configured CSP nonce when requested --- projects/amd-loader/src/loader/config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/amd-loader/src/loader/config.js b/projects/amd-loader/src/loader/config.js index 5305260b9..d68675ffd 100644 --- a/projects/amd-loader/src/loader/config.js +++ b/projects/amd-loader/src/loader/config.js @@ -117,6 +117,10 @@ export default class Config { return this._paths; } + get nonce() { + return this._config.nonce; + } + /** * Adds a module to the configuration with default field values if it * doesn't exist. Otherwise, throws an exception.