diff --git a/src/consent-manager.js b/src/consent-manager.js index 7a117fda..a9738509 100644 --- a/src/consent-manager.js +++ b/src/consent-manager.js @@ -312,6 +312,9 @@ export default class ConsentManager { newElement.setAttribute(attribute.name, attribute.value) } + if (element.hasAttribute('nonce')) { + newElement.setAttribute('nonce', element.nonce) + } newElement.innerText = element.innerText newElement.text = element.text