Created
April 27, 2021 10:57
-
-
Save jeremylong/5325e353976a53f89128c69e20d36a55 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var existing = document.getElementsByTagName("script")[0]; | |
var nonce = existing.getAttribute("nonce"); | |
var newScript = document.createElement("script"); | |
var att = document.createAttribute("nonce"); | |
att.value = nonce; | |
newScript.setAttributeNode(att); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment