diff --git a/packages/odyssey-react-theme/src/withTheme/stylesheet.ts b/packages/odyssey-react-theme/src/withTheme/stylesheet.ts index ef86a2fc8a..f962d4f48b 100644 --- a/packages/odyssey-react-theme/src/withTheme/stylesheet.ts +++ b/packages/odyssey-react-theme/src/withTheme/stylesheet.ts @@ -17,6 +17,8 @@ export class OStyleSheet extends Set { super(); const el = document.createElement("style"); el.setAttribute("data-ods", ""); + // @ts-expect-error ts(2339) + el.setAttribute("nonce", window.nonce); this.element = document.head.appendChild(el); }