import crypto from "node:crypto";
crypto.randomBytes(16).toString("base64");
// '8IBTHwOdqNKAWeKl7plt8g=='`nonce` HTML global attribute / notebook
`nonce` HTML global attribute
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
<script nonce="8IBTHwOdqNKAWeKl7plt8g==">
// …
</script>