Skip to content

Commit

Permalink
feat: added nonce capabilities for Okta apps
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinGhadyani-Okta committed Aug 4, 2022
1 parent 64f6827 commit c89a488
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/odyssey-react-theme/src/withTheme/stylesheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export class OStyleSheet extends Set<string> {
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);
}

Expand Down

0 comments on commit c89a488

Please sign in to comment.